@php use App\Models\Employee; @endphp @extends('layouts.backend.index') @section('title', $label) @section('content')

 {{ $date }}

@php $salary_daily = 0; $salary_overtime = 0; $allowance_meal = 0; $total = 0; $pph = 0; @endphp @foreach ($details->get() as $key => $detail) @php $salary_daily += $detail->salary_daily; $salary_overtime += $detail->salary_overtime; $allowance_meal += $detail->allowance_meal; $total += $detail->total; $pph += $detail->pph; @endphp @endforeach
No Nama Karyawan Gaji Gaji Lembur Uang Makan Total PPH
{{ $key + 1 }} {{ $detail->employee->name }} {{ number_format($detail->salary_daily,0,',','.') }} {{ number_format($detail->salary_overtime,0,',','.') }} {{ number_format($detail->allowance_meal,0,',','.') }} {{ number_format($detail->total,0,',','.') }} {{ number_format($detail->pph,0,',','.') }}
Total {{ number_format($salary_daily, 0, '', '.') }} {{ number_format($salary_overtime, 0, '', '.') }} {{ number_format($allowance_meal, 0, '', '.') }} {{ number_format($total, 0, '', '.') }} {{ number_format($pph, 0, '', '.') }}

CLOSE
@endsection