@extends('layouts.app') @section('title', 'Transfers') @section('breadcrumb', 'Transfers') @section('content')

Student Transfers

Outgoing and incoming transfers for {{ $school->name }}

{{-- Filter --}}
{{ $transfers->total() }} transfer record(s)
@forelse($transfers as $transfer) @php $isOutgoing = $transfer->from_school_id === $school->id; @endphp @empty @endforelse
Ref Student Direction From To Requested Status Actions
{{ $transfer->transfer_ref }}
{{ $transfer->student->full_name }}
{{ $transfer->student->mcss_student_id }}
{{ $isOutgoing ? 'Outgoing' : 'Incoming' }} {{ $transfer->fromSchool->code }} {{ $transfer->toSchool->code }} {{ $transfer->requested_at->format('M d, Y') }} {{ ucfirst($transfer->status) }}
@if($transfer->isPending() && !$isOutgoing && auth()->user()->isAdminLevel()) @endif
No transfer records found.
@if($transfers->hasPages()) @endif
@endsection