@php use Illuminate\Support\Str; $style = $schema['entry_style'] ?? 'eight'; $studentId = $st->student_id ?? 0; $studentName = $st->student_name_english ?? ''; $fatherName = $st->father_name_english ?? ''; $motherName = $st->mother_name_english ?? ''; $gender = $st->gender ?? ''; $dob = $st->birth_date ?? ''; $religion = $st->religion ?? ''; $classRoll = $st->class_roll ?? ''; $shift = $st->shift_name ?? $st->shift_text ?? ''; $section = $st->section_name ?? ''; $version = $st->version ?? ''; $groupName = $st->group_name ?? ''; $prevSubjects = $st->prev_subject_codes ?? ''; $prevCA = $st->prev_ca_subject_codes ?? ''; $prevBoardRoll = $st->prev_board_roll ?? ''; $prevBoardRegNo = $st->prev_board_reg_no ?? ''; $prevDupText = $st->prev_duplicate_row_text ?? ''; $prevDupPhotoPath = $st->prev_duplicate_photo_path ?? ''; $mobile = $st->phone ?? $st->sms_number ?? ''; $prevDupPhotoPath = ltrim((string) $prevDupPhotoPath, '/'); if (Str::startsWith($prevDupPhotoPath, 'storage/')) { $prevDupPhotoPath = Str::after($prevDupPhotoPath, 'storage/'); } $dupPhotoUrl = $prevDupPhotoPath ? asset('storage/' . $prevDupPhotoPath) : ''; $photoUrl = $st->student_photo ? asset('storage/' . $st->student_photo) : asset('assets/images/default-avatar.png'); @endphp {{ $index + 1 }}
{{ $studentName }}
{{ $fatherName }}
{{ $motherName }}
@if($style === 'six')
{{ $gender ?: '-' }}
{{ $religion ?: '-' }}
{{ $dob ?: '-' }}
{{ $section ?: '-' }}
{{ $classRoll ?: '-' }}
{{ $shift ?: '-' }}
Subject preview...
Ver: {{ $version ?: '-' }}
C.A preview...
Photo
Duplicate Photo
Manual upload
@elseif($style === 'eight')
{{ $gender ?: '-' }}
{{ $dob ?: '-' }}
{{ $religion ?: '-' }}
{{ $classRoll ?: '-' }}
{{ $shift ?: '-' }}
{{ $section ?: '-' }}
{{ $version ?: '-' }}
Subject preview...
C.A preview...
Photo
Duplicate Photo
Manual upload
@elseif($style === 'ssc')
{{ $religion ?: '-' }}
{{ $gender ?: '-' }}
{{ $dob ?: '-' }}
{{ $groupName ?: '-' }}
{{ $section ?: '-' }}
{{ $classRoll ?: '-' }}
Subject preview...
Opt. preview...
Shift: {{ $shift ?: '-' }}
Photo
Duplicate Photo
Manual upload
@elseif($style === 'hsc')
{{ $section ?: '-' }}
{{ $classRoll ?: '-' }}
{{ $gender ?: '-' }}
{{ $groupName ?: '-' }}
{{ $shift ?: '-' }}
{{ $version ?: '-' }}
Subject preview...
Opt. preview...
Photo
Duplicate Photo
Manual upload
@else Unknown entry style: {{ $style }} @endif