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