@extends('layout.layout') @section('content')
{{-- @if (session('success')) @endif @if ($errors->any()) @endif --}}
Student Requests
Add New Request
{{--
--}}
Clear
@if ($rows->isNotEmpty())
{{-- --}} {{-- --}} {{-- @dd($rows) --}} @foreach ($rows as $row) {{-- --}} {{-- --}} @endforeach
ID Student Name Admin Department Supervisor Team Leader Subject Type Status Related ToPriorityCreated DateInstructor PriorityActions
{{ $row->id }} @if ($row->creator)
{{ trim(($row->creator->first_name ?? '') . ' ' . ($row->creator->last_name ?? '')) }}
@else - @endif
{{ $row->admin?->full_name ?? '-' }} {{ $row->requestType?->targetDepartment?->name ?? '-' }} {{ $row->instructor?->manager?->full_name ?? trim(($row->instructor?->manager?->first_name ?? '') . ' ' . ($row->instructor?->manager?->last_name ?? '')) ?: '-' }} {{ $row->admin?->staff?->manager?->full_name ?? trim(($row->admin?->staff?->manager?->first_name ?? '') . ' ' . ($row->admin?->staff?->manager?->last_name ?? '')) ?: '-' }}
{{ $row->subject }}
{{-- @if ($row->session) {{ $row->session }} @endif --}}
{{ ucfirst($row->type) }} {{ ucfirst($row->status) }} {{ ucfirst($row->related_to) }} {{ ucfirst($row->priority) }} {{ $row->created_at?->format('d M Y, h:i A') }} @if ($row->creator) {{ $row->creator->first_name . $row->creator->last_name }} @else - @endif @if ($row->instructor) {{ $row->instructor->first_name . $row->instructor->last_name }} @else - @endif {{ ucfirst($row->priority) }} @if (Auth::id() === $row->created_by)
@csrf @method('DELETE')
@endif
{{ $rows->appends(request()->except('page'))->links('pagination::bootstrap-5') }}
@else

No student requests found. Start by adding a new one!

Create Request
@endif
@endsection @push('scripts') @endpush @push('styles') @endpush