{{-- Chi tiết thực thu theo từng lần thanh toán. Biến: $details, $totals, $internal (trang kế toán: link đơn, SĐT, chi nhánh...) --}}
@if(!empty($internal))@endif @if(!empty($internal))@endif @if(!empty($internal))@endif @if(!empty($internal))@endif @forelse($details as $row) @if(!empty($internal))@endif @if(!empty($internal))@endif @if(!empty($internal)) @endif @if(!empty($internal))@endif @empty @endforelse @if(count($details)) @if(!empty($internal))@endif @endif
Đối tácMã KH Tên KHSĐTMã đơn Dịch vụ VoucherChi nhánhNgười lên đơnTổng đơnCòn nợSố tiền thanh toán Thời gian thanh toán Phương thức Hoa hồngKỳ chốt
{{ @$row->partner->code }}{{ @$row->customer->account_code }} {{ @$row->customer->full_name }}{{ @$row->customer->phone }} @if(!empty($internal) && $row->order) {{ $row->order->code }} @else {{ @$row->order->code }} @endif {{ \App\Services\PartnerReportService::serviceNames($row->order) }} {{ @$row->promotion->code }}{{ @$row->branch->name }} {{ @$row->order->owner->full_name }} {{ number_format(@$row->order->all_total) }} {{ number_format(@$row->order->the_rest) }}{{ number_format($row->paid_amount) }}@if(!empty($portal)) đ@endif {{ date('d-m-Y', strtotime($row->paid_at)) }} @if($row->paymentHistory) {{ date('H:i', strtotime($row->paymentHistory->created_at)) }} @endif {{ $row->payment_type_text }} {{ number_format($row->commission_amount) }}@if(!empty($portal)) đ@endif kpi_detail['slices'])) title="{{ collect($row->kpi_detail['slices'])->map(function ($s) { return number_format($s['amount']) . 'đ × ' . rtrim(rtrim(number_format($s['percent'], 2), '0'), '.') . '%'; })->implode(' + ') }}" @elseif(isset($row->kpi_detail['month_revenue'])) title="Tổng thực thu tháng {{ number_format($row->kpi_detail['month_revenue']) }}đ đạt mốc {{ rtrim(rtrim(number_format($row->kpi_detail['rate'], 2), '0'), '.') }}%{{ $row->settlement_id ? '' : ' (tạm tính, chốt cuối tháng)' }}" @endif>({{ $row->percent_text }}){{ $row->settlement ? date('m/Y', strtotime($row->settlement->period . '-01')) : 'Chưa chốt' }}
Không có dữ liệu trong khoảng thời gian này
Tổng ({{ number_format($details->total()) }} lần thanh toán) {{ number_format($totals->paid) }} {{ number_format($totals->commission) }}
{{ $details->links() }}