{{-- Lịch sử chốt sổ. Biến: $settlements, $showPartner (trang kế toán, nhiều đối tác), $showPayoutLink --}} @php $statusClass = [ \App\Constants\PartnerConstant::SETTLEMENT_UNPAID => 'warning', \App\Constants\PartnerConstant::SETTLEMENT_PARTIAL => 'info', \App\Constants\PartnerConstant::SETTLEMENT_PAID => 'success', \App\Constants\PartnerConstant::SETTLEMENT_EMPTY => 'soft', ]; @endphp
| Kỳ | @if(!empty($showPartner))Đối tác | @endifSố đơn | Thực thu | Hoa hồng | Đã thanh toán | Trạng thái | Ngày thanh toán | @if(!empty($showPayoutLink))@endif | |
|---|---|---|---|---|---|---|---|---|---|
| {{ date('m/Y', strtotime($settlement->period . '-01')) }} | @if(!empty($showPartner)){{ @$settlement->partner->code }} - {{ @$settlement->partner->name }} | @endif{{ number_format($settlement->total_orders) }} | {{ number_format($settlement->total_paid) }}@if(!empty($portal)) đ@endif | {{ number_format($settlement->total_commission) }}@if(!empty($portal)) đ@endif | {{ number_format($settlement->paid_amount) }}@if(!empty($portal)) đ@endif | {{ $settlement->payment_status_text }} | {{ $settlement->last_payment_date ? date('d-m-Y', strtotime($settlement->last_payment_date)) : '-' }} | @if(!empty($showPayoutLink))@if($settlement->total_commission > 0) Lệnh thanh toán @endif | @endif|
| Chưa có kỳ chốt sổ | |||||||||