@if ($errors->any())
@endif
@error('vchr_date') {{ $message }} @enderror
@error('vchr_date') {{ $message }} @enderror
{{--
--}} {{-- --}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{-- --}} {{--
--}}

{{__("disclosure_details")}}

{{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{-- --}} {{--
--}}
@switch($ac_statement_type) @case(1)
@if($detailed_type != 3)
@endif @break @case(2)

@case(3)
@break @endswitch

{{-- {{__("2معاينة")}}--}}

@if($data) {{-- {{print_r($data_key)}}--}} {{-- --}} {{-- @livewire("user::form.account-report.design.non-posted" , ["" => $reportData])--}} @php $url = env("APP_URL"); $dir="ltr"; $lang = app()->getLocale(); if ($lang == "ar") $dir="rtl"; // @endphp {{__("account_statement")}}
{{__("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}}

{{-- --}}
{{-- class="page" 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
@endif