@extends('layouts.app') @section('title','Payroll') @section('content')
| Period | Dates | Status | Entries / net total | Actions |
|---|---|---|---|---|
| {{ $p->period_code }} | {{ $p->period_start }} – {{ $p->period_end }} | {{ $p->status }} | {{ DB::table('payroll_entries')->where('payroll_period_id',$p->id)->count() }} staff / ₦{{ number_format(DB::table('payroll_entries')->where('payroll_period_id',$p->id)->sum('net_pay'),2) }} | @if($p->status==='draft' && auth()->user()->hasRole(['super_administrator','lcda_administrator']))@elseif($p->status==='approved')@else—@endif |
| No payroll periods. | ||||