@extends('admin.layouts.app') @section('title', 'Applications') @section('breadcrumb') @endsection @section('content')
{{--
--}}
@php $statuses = [ 'submitted' => ['warning', 'Submitted'], 'under_review' => ['info', 'Under Review'], 'approved' => ['success', 'Approved'], 'rejected' => ['danger', 'Rejected'], 'admitted' => ['primary', 'Admitted'], ]; @endphp @foreach ($statuses as $key => [$color, $label]) {{ $label }} @endforeach
Applications {{ $applications->total() }} {{ $applications->firstItem() }}–{{ $applications->lastItem() }} of {{ $applications->total() }}
@forelse($applications as $app) @empty @endforelse
App No. Applicant Course Applied Community HS% Date Status Action
{{ $app->form_number ?? '--' }}
{{ strtoupper(substr($app->applicant_name, 0, 2)) }}
{{ $app->applicant_name ?? '--' }}
{{ $app->contact_no ?? '--' }}
{{ $app->course ?? '—' }} {{ $app->category }} {{ $app->percentage ? $app->percentage . '%' : '—' }} {{ $app->created_at->format('d M Y') }} {{ ucfirst(str_replace('_', ' ', $app->status)) }} View

No applications found

@if ($applications->hasPages())
{{ $applications->withQueryString()->links() }}
@endif
@endsection