@extends('layouts.app') @section('content')

Commission Reports

@foreach($commissions as $commission) @endforeach
Car Sale Buyer Commission Paid Seller Commission Paid Receiver Status
{{ $commission->carSale->registration_no }} | {{ $commission->carSale->make }} | {{ $commission->carSale->varient }} | {{ $commission->carSale->model }}
({{ $commission->carSale->buyer_name }} → {{ $commission->carSale->seller_name }})
{{ $commission->carSale->buyer_name ?? '-' }} {{ number_format($commission->buyer_commission) }} {{ $commission->carSale->seller_name ?? '-' }} {{ number_format($commission->seller_commission) }} {{ $commission->receiver_name }} @if(($commission->buyer_commission > 0) && ($commission->seller_commission > 0)) Paid @else Unpaid @endif
Total Buyer Commission {{ number_format($totals['buyer_commission']) }} Total Seller Commission {{ number_format($totals['seller_commission']) }} Grand Total: {{ number_format($totals['grand_total']) }}
@endsection