code logo

{{ $bname }}

Privite Limited

CUSTOMER PROFILE

NAME # {{ $customer->name }}

DATE {{ date('Y-M-D') }}

DELEGATE To

{{ $customer->name }}

{{ $customer->address }}
{{ $customer->phone }}
TOTAL SALE INVOICES
@foreach ($currencies as $row)

{{ $loop->iteration }}

{{ $row->title_en . ' ' . $customer_sale->where('currency_id', $row->id)->sum('final_amount') }}

@endforeach
TOTAL RECIEVED RECEPTS
@foreach ($currencies as $row)

{{ $loop->iteration }}

{{ $row->title_en . ' ' . $customer_recieved->where('currency_id', $row->id)->sum('amount') }}

@endforeach
TOTAL ADVANCE PAYMENTS
@foreach ($currencies as $row)

{{ $loop->iteration }}

{{ $row->title_en . ' ' . $customer_advance->where('currency_id', $row->id)->sum('amount') }}

@endforeach
TOTAL RETURN INVOICES
@foreach ($currencies as $row)

{{ $loop->iteration }}

{{ $row->title_en . ' ' . $customer_return->where('currency_id', $row->id)->sum('amount') }}

@endforeach
BALANCE
@foreach ($currencies as $row)

{{ $loop->iteration }}

@php $bills = $customer_sale ->where('currency_id', $row->id) ->sum('final_amount'); $ad = $customer_advance->where('currency_id', $row->id)->sum('amount'); $re = $customer_recieved->where('currency_id', $row->id)->sum('amount'); $ad_re = $ad + $re; @endphp

{{ $row->title_en }} {{ $bills - $ad_re }}

@endforeach