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

{{$title}}

@if(Auth::user()->canDo(['set_payroll'])) Create Payment Period
@endif
@foreach($payment_periods as $payment_period) @endforeach
From To Status Action
{{ $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
@endsection