@php $url = env("APP_URL"); $dir="ltr"; $lang = app()->getLocale(); if ($lang == "ar") $dir="rtl"; @endphp {{__("account_statement")}} {{----}} {{--@if(!isset($showDownloadButton))--}} {{--
--}} {{-- تحميل وطباعة كشـــف حســاب--}} {{--
--}} {{--@endif--}}
{{__("not_used_for_auditing_only")}}

{{$data['company']["company_name"] . "-" . __("accounting_system")}}

{{--

{{__()}}

--}}

{{__("account_statement")}}

{{ __("from_date"). " " . $data['from_date'] . " " . __("to_date") . " " .$data['to_date'] }}

{{__("rpt_account_label")}} {{$data['account']->name}}

{{__("rpt_currency_label")}} {{$data['account']->currency->dsc}}

{{-- --}}
{{-- style="margin-top: -4%"--}}
@php $mount = 0; $totalDebit = 0; $totalCredit = 0; @endphp @foreach($data['transactions'] as $key => $transaction) @php $voucher = $transaction->voucher; switch ($transaction->voucher->vchr_type){ case 1:$voucherType = __("قيد");break; case 2:$voucherType = __("صرف");break; case 3:$voucherType = __("قبض");break; default: $voucherType = __("unknown");break; } if ($transaction->debit){ $mount-= $transaction->debit; $totalDebit+=$transaction->debit; $operation = __("ret_debit_character"); } if ($transaction->credit){ $mount+= $transaction->credit; $totalCredit+=$transaction->credit; $operation = __("ret_credit_character"); } @endphp @endforeach {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}
{{__("#")}} {{__("date")}} {{__("voucher")}} {{__("rpt_desc")}} {{__("rpt_debit")}} {{__("rpt_credit")}} {{__("rpt_amount")}}
{{++$key}} {{date('Y-m-d', strtotime($voucher->vchr_date))}} {{$voucher->vchr_no}} - {{$voucherType}} {{Illuminate\Support\Str::limit($transaction->dsc , 40) ?? "--" }} debit) style="color: red" @endif> {{$transaction->debit }} credit) style="color: red" @endif> {{$transaction->credit }} {{$mount . " " . $operation}}
{{"المجموع"}} {{$totalDebit}} {{$totalCredit}} @if($mount>0) {{$mount . __("ret_credit_character")}} @else {{$mount . __("ret_debit_character")}} @endif
------ ------ ------ ------------------------
{{----}} {{----}} {{----}} {{----}}