@extends('dashboard.layouts.app') @section('content')
@if (session('success')) @endif @if ($errors->any()) @endif
Clear
@if ($users->isNotEmpty())
@php $month = request('month'); $year = request('year'); $invoiceExists = $month && $year ? \App\Models\PayrollInvoice::where('month', $month)->where('year', $year)->first() : null; @endphp @if (!$invoiceExists) @else
@endif
@forelse ($users as $user) @empty @endforelse
Name Role Department Designation Mobile Paid Month Year Status Action
{{ $user['full_name'] }} {{ $user['role'] }} {{ $user['department'] }} {{ $user['designation'] }} {{ $user['mobile'] }} {{ $user['paid'] }} {{ $user['month'] }} {{ $user['year'] }} {{ $user['status'] }} @if (!$user['payroll_status']) Make Earnings Or Deductions @elseif ($user['payroll_status'] == 'Progress') Update @elseif ($user['payroll_status'] == 'Generated' && $user['paid'] == null) View @elseif ($user['payroll_status'] == 'Generated' && $user['paid'] != null) View @elseif ($user['payroll_status'] == 'Paid') View @endif
No records found.
@else

Please select a role, month, or year to view user records.

@endif @endsection