@csrf
@if (session('role') == 2 || session('role') == 3) @endif
@php use Carbon\Carbon; @endphp @if (session('role') == 2 || session('role') == 3) {{-- --}} @php $index = 1; @endphp @foreach ($data as $row) {{-- --}} {{-- --}} {{-- --}} @endforeach
Số thứ tự Khu vực Hạng mục Ngày Giá Nhân viênNgày thêmHành động
{{ $index++ }}{{ $row->SanLuong_Tram }}{{ $row->SanLuong_KhuVuc }} {{ $row->SanLuong_TenHangMuc }}{{ $row->SanLuong_Ngay }}{{ Carbon::createFromFormat('dmY', $row->SanLuong_Ngay)->format('d/m/Y') }} {{ number_format($row->SanLuong_Gia, 3) }} @if (isset($users[$row->user_id])) {{ $users[$row->user_id]->user_name }} @else Không xác định @endif {{ $row->thoi_gian_them }}
@else
Bạn không đủ thẩm quyền để xem Sản lượng khác.
@endif