@extends('layout.main') @section('title', 'Detail Payroll Master') @section('prev-page')
Home
-
Daftar Payroll Master
@endsection @section('content')
@csrf
Detail Payroll Master
Nama Pegawai
{{ $detail->name }}
Nilai Payroll
@php $total = 0; @endphp @foreach ($detail->items as $item) @endforeach
Komponen
Nilai
Catatan
Status
-- Pilih Komponen --
@foreach ($components as $component)
component->id == $component->id) {{ 'selected' }} @endif> {{ $component->name }}
@endforeach
@if ($item->status->id == 1) @php $total += $item->amount; @endphp @endif
status->id == 1) {{ 'checked' }} @endif />
Total
Rp{{ number_format($total, 0, ',', '.') }}
@endsection @section('other-scripts') @endsection