@extends('layouts.master') @section('title', 'Contra Voucher Details') @section('page-header') Contra Voucher Details @stop @push('style') @endpush @section('content')
@include('partials._alert_message')

@yield('page-header')

Voucher Type {{ $voucher->voucher_type }}

Description {{ $voucher->description }}

Invoice No {{ $voucher->invoice_no }}

Date {{ $voucher->date }}

@foreach ($voucher->details as $item) @endforeach
Sl Account Name Debit Credit
{{ $loop->iteration }} {{ optional($item->account)->name }} @if ($item->balance_type == 'Debit') {{ number_format($item->amount, 2) }} @endif @if ($item->balance_type == 'Credit') {{ number_format($item->amount, 2) }} @endif
Total {{ number_format($voucher->amount, 2) }} {{ number_format($voucher->amount, 2) }}
@if (request()->routeIs('contra.approve.show') && !$voucher->is_approved)
@csrf
@endif
@csrf @method("DELETE")
@endsection @section('js') @endsection