@lang('reports.Customer_Balance_Summary')

{{--

@lang('reports.customer_balance_summary_sum')

$1200

--}}

اجمالي سداد فاتورة

$0

{{-- @csrf --}}
@if($errors->all()) @foreach ($errors->all() as $error)
{{ $error }}
@endforeach @endif

@lang('reports.filter')

@lang('reports.Customer_Balance_Summary')

@lang('reports.Customer_Balance_Summary')

@if(request()->get('date_from'))

@lang('reports.from') {{ request()->get('date_from') ?? '--' }}

@endif {{-- --}} @php $all_total = 0; $all_advane = 0; @endphp @foreach ($clients as $client) @php $total = 0; @endphp {{-- --}} @endforeach
@lang('reports.Customer_Name') BalanceDown Payments
@foreach ($client->branch as $branch)

{{$branch->name}}

@endforeach

@lang('reports.Total')

{{$client->total_balance_due - $client->total_refund - $client->total_advance}} @php $total += $client->total_balance_due - $client->total_refund - $client->total_advance @endphp {{-- @php $all_total += $total @endphp --}}

@foreach ($client->branch as $branch)

{{$branch->total_balance_due - $branch->total_refund - $branch->total_advance }} @php $total += $branch->total_balance_due - $branch->total_refund - $branch->total_advance @endphp

@endforeach

${{ $total }} @php $all_total += $total @endphp

{{ $client->total_advance }}

@php $all_advane += $client->total_advance @endphp
@foreach ($client->branch as $branch)

{{$branch->total_advance }} @php $all_advane += $branch->total_advance @endphp

@endforeach
{{-- --}}
@lang('reports.Email')

@lang('reports.Send_report')

@lang('reports.Send_a_report_to_a_prefered_email')

@lang('reports.To')
@lang('reports.CC')
@lang('reports.Subject')
@lang('reports.Body')
{{-- --}}
@endsection @section('custom_script') @endsection