@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) {{-- section content --}} @section('content') @include('layouts.navbars.auth.topnav', ['title' => ''])
Tahun: {{ $filter['tahun'] }}
Bulan: @if($filter['bulan']) @php $months = ['1' => 'Januari', '2' => 'Februari', '3' => 'Maret', '4' => 'April', '5' => 'Mei', '6' => 'Juni', '7' => 'Juli', '8' => 'Agustus', '9' => 'September', '10' => 'Oktober', '11' => 'November', '12' => 'Desember']; @endphp {{ $months[$filter['bulan']] ?? 'Unknown' }} @else Semua Bulan @endif
Upload By: @if($filter['upload_by']) @php $upload_user = DB::table('users')->where('username', $filter['upload_by'])->first(); @endphp {{ $upload_user ? $upload_user->firstname . ' (' . $filter['upload_by'] . ')' : $filter['upload_by'] }} @else Semua User @endif
Created By: @if($filter['created_by']) @php $created_user = DB::table('users')->where('username', $filter['created_by'])->first(); @endphp {{ $created_user ? $created_user->firstname . ' (' . $filter['created_by'] . ')' : $filter['created_by'] }} @else Semua User @endif
Time: {{ $filter['time_filter'] ?: 'Semua Jam' }}
| Tahun | Bulan | @foreach($upload_bom_data['users'] as $user){{ $user->firstname }} | @endforeachTotal |
|---|---|---|---|
| {{ $tahun }} | Total Tahun | @foreach($upload_bom_data['users'] as $user) @php $yearUserTotal = 0; foreach($yearRows as $row) { $yearUserTotal += $row['users'][$user->firstname] ?? 0; } @endphp{{ $yearUserTotal }} | @endforeach{{ array_sum(array_column($yearRows, 'total')) }} |
| - | Grand Total | @foreach($upload_bom_data['users'] as $user){{ $upload_bom_data['grand_totals'][$user->firstname] ?? 0 }} | @endforeach{{ array_sum($upload_bom_data['grand_totals']) }} |
| Tahun | Bulan | @foreach($request_bom_data['users'] as $user){{ $user->firstname }} | @endforeachTotal |
|---|---|---|---|
| {{ $tahun }} | Total Tahun | @foreach($request_bom_data['users'] as $user) @php $yearUserTotal = 0; foreach($yearRows as $row) { $yearUserTotal += $row['users'][$user->firstname] ?? 0; } @endphp{{ $yearUserTotal }} | @endforeach{{ array_sum(array_column($yearRows, 'total')) }} |
| - | Grand Total | @foreach($request_bom_data['users'] as $user){{ $request_bom_data['grand_totals'][$user->firstname] ?? 0 }} | @endforeach{{ array_sum($request_bom_data['grand_totals']) }} |
| Tahun | Bulan | @foreach($time_data['hours'] as $hour) @php $hourInt = intval($hour); // Special handling for specific time filter if(isset($filter['time_filter']) && $filter['time_filter'] && $filter['time_filter'] !== '') { $displayHour = sprintf('%02d:00 (%02d:00-%02d:59)', $hourInt, $hourInt, $hourInt); } else { // Default format: HH:00 (HH:00-HH:59) $displayHour = sprintf('%02d:00 (%02d:00-%02d:59)', $hourInt, $hourInt, $hourInt); } @endphp{{ $displayHour }} | @endforeachTotal |
|---|---|---|---|
| {{ $tahun }} | Total Tahun | @foreach($time_data['hours'] as $hour) @php $yearTotal = 0; foreach($yearRows as $row) { $yearTotal += $row['hours'][$hour] ?? 0; } @endphp{{ $yearTotal }} | @endforeach{{ array_sum(array_column($yearRows, 'total')) }} |
| - | Grand Total | @foreach($time_data['hours'] as $hour){{ $time_data['grand_totals'][$hour] ?? 0 }} | @endforeach{{ array_sum($time_data['grand_totals']) }} |