@extends('layouts.app') @section('content')

Payroll Management

{{ $company->name }} - Salary Processing

Back to Admin @can('manage-payroll', $company) Process Payroll @endcan

RM{{ number_format($totalPayroll, 2) }}

Total Paid

@if($payrolls->count() > 0)
@foreach($payrolls as $payroll) @endforeach
Employee Period Pay Date Base Salary Gross Pay Net Pay Status Actions
{{ $payroll->employee->full_name }}
{{ $payroll->employee->employee_id }}
{{ $payroll->payroll_period }} {{ $payroll->pay_date->format('M d, Y') }} RM{{ number_format($payroll->base_salary, 2) }} RM{{ number_format($payroll->gross_pay, 2) }} RM{{ number_format($payroll->net_pay, 2) }} @if($payroll->status === 'draft') Draft @elseif($payroll->status === 'processed') Processed @else Paid @endif
@can('manage-payroll', $company) @if($payroll->status !== 'paid') @endif @if($payroll->status === 'processed')
@csrf
@endif @if($payroll->status === 'draft')
@csrf @method('DELETE')
@endif @endcan
Showing {{ $payrolls->firstItem() }} to {{ $payrolls->lastItem() }} of {{ $payrolls->total() }} results
{{ $payrolls->appends(request()->query())->links() }}
@else
No payroll records found

Start by processing your first payroll.

@can('manage-payroll', $company) Process First Payroll @endcan
@endif
@endsection