Dear {{ $data['emp_name'] }}
We wanted to inform you that there is a paid commission invoice for your recent activities. Please find the invoice details below for your reference.
Kindly review the invoice, and feel free to reach out if you have any questions or concerns.
Thank you for your continued collaboration!
Employee Name: {{ $data['emp_name'] }}
@if($data['paid_status'] == 1)
Paid Status: Paid
Paid At: {{ date('Y-m-d h:i a', strtotime($data['paid_at'])) }}
Paid By: {{ $data['paid_by'] }}
@else
Paid Status: Unpaid
@endif
@if(isset($data['payment_method_info']))
Paid To: {{ $data['payment_method_info'] }}
@endif
@foreach($data->get('commissions') as $com)
{{$com?->importInfo?->period?->name}} |
|
Total Deposit Amount |
{{$com->importInfo?->period?->deposit?->depositEmployees?->sum('plus_minus')}}
|
Total Deposit |
{{$com->importInfo?->period?->deposit?->depositEmployees?->count()}}
|
FTD |
{{$com->importInfo?->period?->deposit?->depositEmployees?->where('first_deposit','!=','N')->count()}}
|
Total Win/loss |
{{$com->member_WL}}
|
Active Player |
{{$com->active_member}} |
Commission |
{{$com->paid_commission}} |
@endforeach
Adjustments |
|
@foreach($data->get('adjustments') as $adjustment)
{{$adjustment?->adjustmentInfo?->period?->name}}
|
@if($adjustment->calculation_type == 1)
-{{number_format($adjustment->amount,2)}}
@else
{{number_format($adjustment?->amount,2)}}
@endif
|
@endforeach
Total Commission |
{{ number_format($data->get('commissions')->sum('paid_commission'), 2) }} |
Total Adjustment |
{{number_format($data->get('adjustments')->where('calculation_type', 2)->sum('amount') - $data->get('adjustments')->where('calculation_type', 1)->sum('amount'),2)}}
|
Total Payable |
{{ number_format($data['commissions_sum_total_commission'], 2) }} |