@extends('layout.layout') @section('content')
@if (session('success')) @endif
Student Image
Full Name: {{ $student->full_name ??''}}
Admission Number: {{ $student->admission_no ??'' }}
Gender: {{ $student->gender->base_setup_name ??''}}
Date of Birth:
{{ $student->date_of_birth ??'' }}
Age:
{{ $student->age ??'' }} years
Phone Number:
{{ $student->mobile ??''}}
Email Address:
{{ $student->email??'' }}
Permanent Address:
{{ $student->permanent_address ??'' }}
Current Address:
{{ $student->current_address ??'' }}
Father Information
Father Photo
Name: {{ $student->parent->fathers_name ??'' }}
Occupation: {{ $student->parent->fathers_occupation ??'' }}
Mobile: {{ $student->parent->fathers_mobile ??'' }}
Mother Information
Mother Photo
Name: {{ $student->parent->mothers_name ??'' }}
Occupation: {{ $student->parent->mothers_occupation ??'' }}
Mobile: {{ $student->parent->mothers_mobile ??'' }}
Track Type Invoices
@php $trackInvoices = $student->invoices->where('type', 'track'); @endphp @forelse ($trackInvoices as $invoice)
Invoice Number:
{{ $invoice->invoice_number ??'' }}
Payment Status:
{{ $invoice->payment_status ??'' }}
Bill Status:
{{ $invoice->bill_status ??'' }}
Track:
{{ $invoice->levels->track->name_en ??'' }}
@empty

No track type invoices found.

@endforelse
Product Type Invoices
@php $productInvoices = $student->invoices->where('type', 'product'); @endphp @forelse ($productInvoices as $invoice)
Invoice Number:
{{ $invoice->invoice_number ??'' }}
Payment Status:
{{ $invoice->payment_status ??'' }}
Bill Status:
{{ $invoice->bill_status ??'' }}
Product:
{{ $invoice->product->name_en ??'' }}
@empty

No product type invoices found.

@endforelse
Track Type Courses
@php $courseStudents = $student->courseStudents->filter(function ($courseStudent) { return $courseStudent->course && $courseStudent->course->schedule_type === 'track'; }); @endphp
@forelse ($courseStudents as $courseStudent)
Name: {{ $courseStudent->course->course_name_en ??'' }}
Category: {{ $courseStudent->course->category->name_en ??'' }}
Staff: {{ $courseStudent->course->staff->full_name ??'' }}
Session: {{ $courseStudent->course->session ??'' }}
Schedule: {{ $courseStudent->course->schedule ??'' }}
Start Date: {{ $courseStudent->course->start_date ??'' }}
End Date: {{ $courseStudent->course->end_date ??'' }}
Track: {{ $courseStudent->course->track->name_en ??'' }}
Track Level: {{ $courseStudent->course->trackLevel->name_en ??'' }}

@empty

No course found.

@endforelse
Course Type Courses
@php $courseStudents = $student->courseStudents->filter(function ($courseStudent) { return $courseStudent->course && $courseStudent->course->schedule_type === 'course'; }); @endphp
@forelse ($courseStudents as $courseStudent)
Name: {{ $courseStudent->course->course_name_en ??'' }}
Category: {{ $courseStudent->course->academyCategoryProduct->name_en ??'' }}
Staff: {{ $courseStudent->course->staff->full_name ??'' }}
Session: {{ $courseStudent->course->session ??'' }}
Schedule: {{ $courseStudent->course->schedule ??'' }}
Start Date: {{ $courseStudent->course->start_date ??'' }}
End Date: {{ $courseStudent->course->end_date ??'' }}
Track: {{ $courseStudent->course->academyProduct->name_en ??'' }}

@empty

No course found.

@endforelse
@endsection