| Stage | Status | Documents | @if(!$fd)Company expense | @endif
|---|---|---|---|
| {{ $s->position }}. {{ $s->name }} | {{ $d ? ucfirst($d->status).($d->reason?': '.$d->reason:'') : 'Pending' }} | @foreach($need as $n){{ in_array($n,$have)?'โ':'โ' }} {{ $n }} @endforeach |
@if(!$fd){{ number_format($tx->where('stage_id',$s->id)->where('type','expense')->where('paid_by','agency')->sum('amount'),2) }} | @endif
Agreed commission: {{ number_format($c->commission,2) }} payable by {{ $c->commission_payer }} ยท received {{ number_format($tx->where('type','income')->where('category','commission')->sum('amount'),2) }}
| Date | Type | Category | Paid by / from | Amount |
|---|---|---|---|---|
| {{ $t->date }} | {{ $t->type }} | {{ $t->category }} | {{ $t->payer ?? $t->paid_by }} | {{ number_format($t->amount,2) }} |