@extends('layouts.main') @section('content')
| From | To | Status | Action | @foreach($payment_periods as $payment_period)
|---|---|---|---|
| {{ $payment_period->from }} | {{ $payment_period->to }} | @php $status = $payment_period->status; if ($status === 'pending') { $statusClass = 'warning'; } elseif ($status === 'approved') { $statusClass = 'success'; } elseif ($status === 'declined') { $statusClass = 'danger'; } else { $statusClass = 'secondary'; } @endphp {{ ucfirst($payment_period->status) }} | Payroll @if($payment_period->status != "approved") @if(Auth::user()->canDo(['set_payroll'])) Edit @endif @endif |