@if($format) @include('documents.report_logo')
@endif

COMMISSION REPORT

Title: {{$title}} @php($total_amount = 0) @php($resver_amount = 0) @php($approve_amount = 0) @foreach($commission_list as $rows) @php($user = $rows->user) @php($booking = $rows->booking) @if($rows->status == "Approve") @php($approve_amount += $rows->amount) @elseif($rows->status == "Reversal") @php($resver_amount += $rows->amount) @endif @php($total_amount += $rows->amount) @endforeach
Commission Report
Sr. Date Name Booking Detail Description Amount {{ucwords(str_replace('_',' ',EF::branchWhiteLabel()['module']))}} Status
{{$loop->iteration}} {{EF::dateFormat($rows->created_at)}} @isset($user->id) {{ucwords($user->name)}} @endisset {{$rows->showGenericTypeDetail($rows)['description']}} {{ucwords($rows->description)}} {{EF::numberFormat($rows->amount)}} {{ucwords($rows->branch->name)}} {{ucwords($rows->status)}}
Total Commission (Approved payments - Reversed Payments) => ({{ EF::numberFormat($approve_amount) }} - {{ EF::numberFormat($resver_amount)}}) = {{EF::numberFormat(($approve_amount) - ($resver_amount)) }} {{EF::numberFormat($total_amount)}}