@php $index = 1; @endphp @foreach ($pagedData as $row) @endforeach
Số thứ tự Tên trạm Hợp đồng Khu vực Thành tiền Tỉnh Hành động
{{ $index++ }} {{ $row->SanLuong_Tram }} {{ $row->HopDong_SoHopDong ?? 'Không có' }} {{ $row->ten_khu_vuc }} {{ number_format($row->SanLuong_Gia, 3) }} {{ $row->ma_tinh }} Xem
{{ $pagedData->appends(['days' => implode(',', $days), 'searchMaTram' => $searchMaTram, 'searchHopDong' => $searchHopDong, 'searchKhuVuc' => $searchKhuVuc])->links() }}
{{-- Tổng giá trị: {{ number_format($totalGia, 3, ',', '.') }} --}} @php $totalStations = 0; $totalProduction = 0; @endphp @foreach($khuVucData as $item) @php $totalStations += $item->so_tram; $totalProduction += $item->tong_san_luong; @endphp @endforeach
Tên Khu Vực Số Trạm Tổng Sản Lượng
{{ $item->ten_khu_vuc ?? 'Khác' }} {{ $item->so_tram }} {{ number_format($item->tong_san_luong, 3) }}
Tổng {{ $totalStations }} {{ number_format($totalProduction, 3) }}