@extends('layouts.pdf') @section('title') @endsection @section('content') @include('admin.partials.header', ['extra' => $extra]) @php $total_amount = 0; $initial_balance = $cash_head_balance; @endphp

{{__('lang.petty_cash_voucher')}}

{{__('lang.project')}} : {{$petty_cash_voucher->branch->name ?? '-'}} {{__('lang.opening_balance')}} : {{$transaction->isNegative($cash_head_balance) ?? '-'}}
{{__('lang.cash_account')}} : {{ $petty_cash_voucher->cash_head->name ?? '-'}}

@foreach ($petty_cash_voucher_items as $pcv_item) @php $amount = $pcv_item->amount; $balance_amount = $initial_balance - $amount; $initial_balance = $balance_amount; $total_amount += $amount; @endphp @endforeach
{{ __('lang.sno') }} {{ __('lang.department') }} {{ __('lang.voucher_no') }} {{ __('lang.voucher_date') }} {{ __('lang.account') }} {{ __('lang.description') }} {{ __('lang.amount') }} ({{config('settings.currency_symbol') }}) {{ __('lang.balance') }} ({{config('settings.currency_symbol') }})
{{ $loop->iteration}} {{ $pcv_item->department->department_name }} {{ $pcv_item->voucher_no}} {{ $transaction->date_format($pcv_item->voucher_date) }} {{ $pcv_item->dr_head->name }} {{ $pcv_item->description }} {{ $transaction->convert_money_format($amount) }} {{ $transaction->isNegative($balance_amount) }}
{{ __('lang.total') }} {{ $transaction->convert_money_format($total_amount) }} {{ $transaction->isNegative($initial_balance) }}
@stop