@extends('voyager::master') @section('page_title', __('voyager::generic.viewing').' '.$dataType->getTranslatedAttribute('display_name_plural')) @section('content')
@include('voyager::alerts')
{{ __('messages.admin.account statement') }} @if($request->has('search')) @endif

بحث

@if($request->has('search'))
@foreach($result_from_db as $transaction) @php $total_debit = 0; $total_credit = 0; $creadit_accounts = []; $debit_accounts = []; foreach($transaction->getTransactiondetails as $account){ $value_debit=$account->debit_amount ?? 0; $value_credit=$account->credit_amount ?? 0; $total_debit += $value_debit; $total_credit += $value_credit; } @endphp @if($total_debit != 0 || $total_credit != 0 )
@php $clc_accounts = collect($transaction->getTransactiondetails); @endphp @foreach($clc_accounts->sortBy('order') as $account) @php $value_debit=$account->debit_amount ?? 0; $value_credit=$account->credit_amount ?? 0; @endphp @if($value_debit != 0 || $value_credit != 0) @endif() @endforeach
{{ $transaction->description }}
مدين دائن اسم الحساب
@convert($value_debit) @convert($value_credit) {{ $account->description }}
@convert($total_debit) @convert($total_credit) اجمالي الحركات
@endif @endforeach
@if($request->has('search')) {{ __('messages.print') }} @endif
@endif
@stop @section('css') @if(!$dataType->server_side && config('dashboard.data_tables.responsive')) @endif @stop @section('javascript') @if(!$dataType->server_side && config('dashboard.data_tables.responsive')) @endif @stop