@extends('layout.master') @push('plugin-styles') @endpush @section('content') {{-- --}} {{--
@csrf
To
--}}
Commission Payout Report
@if(Session::get('role')=="superDistributer" || Session::get('role')=="Admin" || Session::get('role')=="distributer") @endif @php $no =1; $totalS = 0; $totalD = 0; $totalR = 0; $toS=0; $toD=0; $toR=0; @endphp @foreach($data as $day => $value) @php if(Session::get('role')=="Admin"){ $toS = $value['TotalSuperDistributerCommission']; $totalS += $toS; } if(Session::get('role')=="superDistributer" || Session::get('role')=="Admin"){ $toD = $value['TotalDistributerCommission']; $totalD += $toD; } $toR = $value['TotalRetailerCommission']; $totalR += $toR; @endphp @if(Session::get('role')=="superDistributer" || Session::get('role')=="Admin" || Session::get('role')=="distributer") @endif @endforeach @if(Session::get('role')=="superDistributer" || Session::get('role')=="Admin" || Session::get('role')=="distributer") @endif
Sl.No Date Username User Type NameRetailerRetailer Amount
{{$no++}} {{$day}} {{$value['userName']}} {{$value['role']}} {{$value['name']}}{{$value['retailer']}}{{number_format($toR,2)}}
Total Commission {{number_format($totalR,2)}}
@endsection @push('plugin-scripts') @endpush @push('custom-scripts') @endpush @push('custom-scripts') @endpush