@extends('layouts.master') @section('content')
@include('inc.header-nav')
@include('inc.header-profile')

Passport Details

@csrf @if (optional($passport)->status == 'all-good')
Student ID Number
{{ $passport->student_school_id }}
Year Level
{{ $passport->year_level }}
Form Type Submitting
{{ is_array($passport->form_type) ? implode(', ', $passport->form_type) : '' }}
First Name
{{ $passport->first_name }}
Last Name
{{ $passport->last_name }}
Nationality
{{ $countries->firstWhere('id', $passport->country_id)?->name }}
Issuing Country
{{ $countries->firstWhere('id', $passport->issue_by_country_id)?->name }}
Gender
{{ ucfirst($passport->gender) }}
Passport No.
{{ $passport->passport_no }}
Passport Expiry Date
{{ optional($passport->passport_expiry_date) ? \Carbon\Carbon::parse($passport->passport_expiry_date)->format('F d, Y') : '' }}
Passport Issued Date
{{ optional($passport->passport_issued_date) ? \Carbon\Carbon::parse($passport->passport_issued_date)->format('F d, Y') : '' }}
Email
{{ $passport->email }}
Contact Number
{{ $passport->contact_no }}
Date of Birth
{{ optional($passport->date_of_birth) ? \Carbon\Carbon::parse($passport->date_of_birth)->format('F d, Y') : '' }}
Place of Birth
{{ $passport->place_of_birth }}
Place of Issue / Issuing Authority
{{ $passport->place_of_issue }}
Permanent Address
{{ $passport->permanent_address }}
Current Address
{{ $passport->current_address }}
Father Name
{{ $passport->father_name }}
Mother Name
{{ $passport->mother_name }}
VISA INFORMATION
Visa Category
{{ strtoupper($passport->visa_category) }}
Visa Date of Expiry
{{ optional($passport->visa_date_of_expiry) ? \Carbon\Carbon::parse($passport->visa_date_of_expiry)->format('F d, Y') : '' }}
Visa Date of Issue
{{ optional($passport->visa_date_of_issue) ? \Carbon\Carbon::parse($passport->visa_date_of_issue)->format('F d, Y') : '' }}
ACR CARD INFORMATION
ACR Card No.
{{ $passport->acr_card_no }}
ACR Date of Issue
{{ optional($passport->acr_date_of_issue) ? \Carbon\Carbon::parse($passport->acr_date_of_issue)->format('F d, Y') : '' }}
ACR Date of Expiry
{{ optional($passport->acr_date_of_expiry) ? \Carbon\Carbon::parse($passport->acr_date_of_expiry)->format('F d, Y') : '' }}
@if (!is_null($passport))
BIO Page
@if ($passport->bio_page) @php $bioPage = optional($passport)->bio_page; $href = ''; if ($bioPage && strpos($bioPage, 'drive.google.com') !== false) { // Extract ID if format is "...id=xxxx" if (strpos($bioPage, 'id=') !== false) { $id = explode('id=', $bioPage)[1]; $href = "https://drive.google.com/open?id={$id}"; } else { $href = $bioPage; // Use as-is if already a direct Drive link } } else { $href = optional($passport)->bio_page_url ?: '#'; } @endphp View File @else N/A @endif
ACR Card
@if ($passport->acr_card) @php $acr_card = optional($passport)->acr_card; $href = ''; if ($acr_card && strpos($acr_card, 'drive.google.com') !== false) { // Extract ID if format is "...id=xxxx" if (strpos($acr_card, 'id=') !== false) { $id = explode('id=', $acr_card)[1]; $href = "https://drive.google.com/open?id={$id}"; } else { $href = $acr_card; // Use as-is if already a direct Drive link } } else { $href = optional($passport)->acr_card_url ?: '#'; } @endphp View File @else N/A @endif
@endif @else
Please select year level
@php $selectedTypes = $passport->form_type ?? []; @endphp
Please select at least one form type
Please select nationality
Please select nationality
Please select gender
VISA INFORMATION
ACR CARD INFORMATION
@if (!empty(optional($passport)->bio_page))
@php $bioPage = optional($passport)->bio_page; $href = ''; if ($bioPage && strpos($bioPage, 'drive.google.com') !== false) { // Extract ID if format is "...id=xxxx" if (strpos($bioPage, 'id=') !== false) { $id = explode('id=', $bioPage)[1]; $href = "https://drive.google.com/open?id={$id}"; } else { $href = $bioPage; // Use as-is if already a direct Drive link } } else { $href = optional($passport)->bio_page_url ?: '#'; } @endphp View File
@endif
@if (!empty(optional($passport)->acr_card))
@php $acr_card = optional($passport)->acr_card; $href = ''; if ($acr_card && strpos($acr_card, 'drive.google.com') !== false) { // Extract ID if format is "...id=xxxx" if (strpos($acr_card, 'id=') !== false) { $id = explode('id=', $acr_card)[1]; $href = "https://drive.google.com/open?id={$id}"; } else { $href = $acr_card; // Use as-is if already a direct Drive link } } else { $href = optional($passport)->acr_card_url ?: '#'; } @endphp View File
@endif
@endif
Passport Requests List of passport requests
@if (optional($passport)->status == 'approved') @endif
@foreach($passports as $pass) @endforeach
Unique ID Created At Requesting For Reason Explaination Return Date Attachments Status
{{$pass->unique_id}} {{$pass->created_at}} {{ ucwords(implode(', ', $pass->form_type)) }} {{ ucwords(implode(' ', explode('_', $pass->reason)))}} {{$pass->notes}} {{$pass->passport_return_date}} @foreach($pass->attachments as $index => $att) View File @endforeach @if ($pass->status == 'pending')Pending@endif @if ($pass->status == 'approved')Approved@endif @if ($pass->status == 'disapproved')Dis Approved@endif

{{$pass->status_notes}}

@if (is_null($passport)) @endif @include('modals.passport-request-modal') @endsection @push('scripts') @endpush