@extends('layouts.app') @section('title', 'Payroll') @section('content')

Payroll — {{ $item->employee->name ?: ($item->employee->user?->name ?? '') }} ({{ $item->month }})

Back to list
@if(session('success'))
{{ session('success') }}
@endif
@if($item->voucher_id) @endif @if($item->paid_at) @endif
Employee{{ $item->employee->name ?: ($item->employee->user?->name ?? $item->employee->employee_code ?? $item->employee_id) }}
Month{{ $item->month }}
Gross{{ number_format($item->gross, 2) }}
Bonus{{ number_format($item->bonus, 2) }}
Overtime{{ $item->overtime }} hrs
Deductions{{ number_format($item->deductions, 2) }}
Net{{ number_format($item->net, 2) }}
Status
Journal Voucher{{ $item->voucher->voucher_number ?? $item->voucher_id }}
Paid At{{ $item->paid_at }}
@if($item->status === 'draft') @can('approve', $item)
@csrf
@endcan @endif @if($item->status === 'approved') @can('pay', $item)
Pay Salary
@csrf
@endcan @endif @endsection