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

{{__("نظام المحاسبة". " - ". "مصنع الفستق")}}

{{--

{{__()}}

--}}

{{__("Account statement")}}

{{ $from_date . " من تاريخ " . $to_date . " الى تاريخ "}}

{{--

من تاريخ 12/11/2022 الى تاريخ 12/11/2023

--}}

الحساب: {{$account->name}}

العملة: اردني

{{-- --}}
{{-- style="margin-top: -4%"--}}
@php $mount = 0; $totalDebit = 0; $totalCredit = 0; @endphp @foreach($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 = __("غير معروف");break; } if ($transaction->debit){ $mount-= $transaction->debit; $totalDebit+=$transaction->debit; $operation = "م"; } if ($transaction->credit){ $mount+= $transaction->credit; $totalCredit+=$transaction->credit; $operation = "د"; } @endphp @endforeach
{{__("#")}} {{__("التاريخ")}} {{__("السند")}} {{__("البيان")}} {{__("مدين")}} {{__("دائن")}} {{__("الرصيد")}}
{{++$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 . "د"}} @else {{$mount . "م"}} @endif