@forelse($rows as $row)
| {{ $row['job_code'] ?? '-' }} |
{{ $row['job_name'] ?? '-' }} |
{{ number_format((float) ($row['hours_total'] ?? 0), 2, '.', ',') }} |
{{ number_format((int) ($row['minutes_total'] ?? 0), 0, ',', '.') }} |
Rp {{ number_format((float) ($row['rate_per_hour'] ?? 0), 2, ',', '.') }} |
Rp {{ number_format((float) ($row['cost_total'] ?? 0), 2, ',', '.') }} |
{{ implode(', ', $row['sources'] ?? []) }} |
@if(!empty($row['details']))
| Karyawan |
Jam |
Menit |
Rate/Jam |
Total Cost |
Sumber |
Tanggal |
@foreach(($row['details'] ?? []) as $detail)
| {{ ($detail['employee_code'] ?? '-') . ' - ' . ($detail['employee_name'] ?? '-') }} |
{{ number_format((float) ($detail['hours_total'] ?? 0), 2, '.', ',') }} |
{{ number_format((int) ($detail['minutes_total'] ?? 0), 0, ',', '.') }} |
Rp {{ number_format((float) ($detail['rate_per_hour'] ?? 0), 2, ',', '.') }} |
Rp {{ number_format((float) ($detail['cost_total'] ?? 0), 2, ',', '.') }} |
{{ implode(', ', $detail['sources'] ?? []) }} |
{{ implode(', ', $detail['work_dates'] ?? []) }} |
@endforeach
|
@endif
@empty
| Belum ada data. |
@endforelse
@if(count($rows))
| GRAND TOTAL |
{{ number_format((float) collect($rows)->sum('hours_total'), 2, '.', ',') }} |
{{ number_format((int) collect($rows)->sum('minutes_total'), 0, ',', '.') }} |
- |
Rp {{ number_format((float) collect($rows)->sum('cost_total'), 2, ',', '.') }} |
- |
@endif