ລາຍງານເຄື່ອງບໍ່ມີການຂາຍ

@if($branchName)
ໂຮງຫວຍ: {{ $branchName }}
@endif @if($provinceName)
ແຂວງ: {{ $provinceName }}
@endif @if($unitName)
ໜ່ວຍ: {{ $unitName }}
@endif @if($monthLabel || $yearLabel)
ເດືອນ/ປີ: {{ $monthLabel }} {{ $yearLabel }}
@endif
ຈຳນວນງວດໃນເດືອນ: {{ $lotteries->count() }} ງວດ
ວັນທີ່ອອກລາຍງານ: {{ now()->format('d/m/Y H:i') }}
@foreach($machines as $index => $machine) @php $soldIds = $machineSoldMap[$machine->id] ?? []; $missingLotteries = $lotteries->whereNotIn('id', $soldIds); @endphp @endforeach
ລຳດັບ ລະຫັດເຄື່ອງ ໜ່ວຍ ໂຮງຫວຍ ແຂວງ ງວດທີ່ຂາດ ງວດທີ່ບໍ່ມີການຂາຍ
{{ $index + 1 }} {{ $machine->machineCode }} {{ $machine->unit?->unitName ?? '-' }} {{ $machine->unit?->branch?->name ?? '-' }} {{ $machine->unit?->province?->name ?? '-' }} {{ $missingLotteries->count() }} {{ $missingLotteries->pluck('lotteryNo')->implode(', ') }}
ຈຳນວນເຄື່ອງທີ່ຂາດການຂາຍ: {{ $machines->count() }} ເຄື່ອງ
ຈຳນວນງວດໃນເດືອນ: {{ $lotteries->count() }} ງວດ ({{ $lotteries->pluck('lotteryNo')->implode(', ') }})