@if(isset($payment) &&count($payment))
@php
// Thanh toán đã chốt sổ hoa hồng đối tác thì không cho xoá
$lockedPaymentIds = \App\Services\PartnerCommissionService::lockedPaymentIds($payment->pluck('id')->toArray());
@endphp
@foreach($payment as $item)
| {{ date('d-m-Y', strtotime($item->payment_date)) }}
|
{{ number_format($item->price) }}
{{\App\Models\PaymentHistory::label[$item->payment_type] ?? ''}}
|
{{ $item->description }} |
@if(in_array($item->id, $lockedPaymentIds))
@else
@endif
|
@endforeach
@else
Chưa có giao dịch thanh toán
|
@endif