{{-- --}} @forelse ($receipts as $key =>$receipt) @if ($receipt->model && $receipt->model->account_type) @endif @empty {{ __('messages.Empty Result') }} @endforelse
# {{ __('messages.Receipt No.') }} {{ __('messages.Created by') }} {{ __('messages.Created At') }} {{ __('messages.Customer') }} {{ __('messages.Ar Name') }} {{ __('messages.Identity No.') }} {{ __('messages.mobile') }} {{ __('messages.last_follow_up_by') }} {{ __('messages.Total Payment') }} {{ __('messages.Payment Method') }} {{ __('messages.Payment Details') }} {{ __('messages.statement') }}
{{__('messages.Total')}} {{$q_clone->count()}} {{__('messages.Receipts')}} {{ number_format( $q_clone->sum('amount') ,2)}}    
{{ $loop->iteration }} {{ $receipt->receipt_serial_no }} {{ $receipt->created_by_user ? $receipt->created_by_user->name : '-' }} {{ $receipt->created_at ? $receipt->created_at : '' }} @if ($receipt->model->account_type == 'App\Models\Customer') {{ $receipt->model->account->name }} @php $mobile =$receipt->model->account->mobile; @endphp @else {{ $receipt->model->account->name }} @endif @if ($receipt->model->account_type == 'App\Models\Customer') {{ $receipt->model->account->ar_certificate_name }} @php $mobile =$receipt->model->account->mobile; @endphp @else {{ $receipt->model->account->name }} @endif @if ($receipt->model->account_type == 'App\Models\Customer') {{ $receipt->model->account->identity_no }} @else - @endif {{ $mobile ?? "" }} {{ $receipt->model->account->last_follow_up_by_user->name }} {{ $receipt->amount}} {{ $receipt->payment_method->name }} @if ($receipt->payment_method_id == 2 ) {{($receipt->payment_machine_id)?$receipt->payment_machine->name:"" }} @elseif ($receipt->payment_method_id == 3 ) {{($receipt->bank_account_id)?$receipt->bank_account->name:"" }} @else - @endif {{ $receipt->statement }}