@extends('layouts.app') @section('title') {{'Monthly Commission Report'}} @endsection @section('content')
Monthly Commission Report
Search By Department
Start Date
End Date

 

@if (Session::has('msg'))
{{ Session::get('msg') }}
@endif {{ $product_list->withPath('?'.$link) }} @if (Auth::user()->parent_id == "0") @endif @php $i=1; $TotalClosingSalesTK = 0; $TotalCommission = 0; $TotalClosingDpTK =0; $TotalClosingTpTK =0; @endphp @if(isset($product_list[0])) @foreach($product_list as $row) @if($row->product_sales>0 && $row->commission>0) @php $ClosingSalesTK = $row->product_sales; $Commission = $row->commission; $ClosingDpTK = $ClosingSalesTK * $row->dp_price; $ClosingTpTK = $ClosingSalesTK * $row->tp_price; $TotalClosingSalesTK += $ClosingSalesTK; $TotalCommission += $Commission; $TotalClosingDpTK += $ClosingDpTK; $TotalClosingTpTK += $ClosingTpTK; @endphp @if (Auth::user()->parent_id == "0") @endif @endif @endforeach @if (Auth::user()->parent_id == "0") @endif @endif
S.N. ID Name Sales DP Rate DP Taka TP Rate TP Taka Commission
{{$i++}} {{$row->id}} {{$row->product_name}} {{ number_format($ClosingSalesTK,2)}} {{ ($row->pack_type)}}{{ number_format($row->dp_price,2)}} {{ number_format($ClosingDpTK,2)}}{{ number_format($row->tp_price,2)}} {{ number_format($ClosingTpTK,2)}} {{ number_format($Commission,2)}}
Total Taka = {{ number_format($TotalClosingSalesTK,2) }} {{ number_format($TotalClosingDpTK,2) }} {{ number_format($TotalClosingTpTK,2) }} {{ number_format($TotalCommission,2) }}
{{ $product_list->withPath('?'.$link) }}
@endsection