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

 {{ Common::dateFormat($payroll->years . '-' . $payroll->months . '-01', 'mmmm yyyy') }}

@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; $salary_overtime += $detail->salary_overtime; $allowance_meal += $detail->allowance_meal; $salary_cuts += $detail->salary_cuts; $total += $detail->total; $pph += $detail->pph; @endphp @endforeach
No Nama Karyawan Gaji Gaji Lembur Uang Makan Potongan Total Catatan Slip Gaji
{{ $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, '', '.') }} {{ number_format($total, 0, '', '.') }}  
@endsection @push('scripts') @endpush