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

 {{ $date }}

@csrf @method('PUT')
@php $salary_daily = 0; $salary_overtime = 0; $allowance_meal = 0; $salary_cuts = 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; $salary_cuts += $detail->salary_cuts; $total += $detail->total; @endphp @endforeach
No Nama Karyawan Gaji Gaji Lembur Uang Makan Potongan Total Catatan
{{ $key + 1 }} {{ $detail->employee->name }} {{ number_format($detail->salary, 0, ',', '.') }} {{ number_format($detail->salary_overtime, 0, ',', '.') }} {{ number_format($detail->allowance_meal, 0, ',', '.') }} {{ number_format($detail->salary_cuts, 0, ',', '.') }} {{ number_format($detail->total, 0, ',', '.') }} {{$detail->notes}}
Total {{ number_format($salary_daily, 0, '', '.') }} {{ number_format($salary_overtime, 0, '', '.') }} {{ number_format($allowance_meal, 0, '', '.') }} {{ number_format($salary_cuts, 0, '', '.') }}

@endsection @push('scripts') @endpush