@php /* |-------------------------------------------------------------------------- | School Information |-------------------------------------------------------------------------- */ $schoolName = $schoolProfile?->school_name ?? $schoolProfile?->name ?? config('app.name') ?? 'School Name'; $schoolAddress = $schoolProfile?->address ?? $schoolProfile?->school_address ?? ''; $schoolPhone = $schoolProfile?->phone ?? $schoolProfile?->mobile ?? ''; $schoolCode = $schoolProfile?->school_code ?? ''; $collegeCode = $schoolProfile?->college_code ?? ''; $schoolEiin = $schoolProfile?->eiin_number ?? ''; $schoolEmail = $schoolProfile?->email ?? ''; /* |-------------------------------------------------------------------------- | File URL Generator |-------------------------------------------------------------------------- */ $generateFileUrl = function ($filePath) { if (empty($filePath)) { return null; } if ( \Illuminate\Support\Str::startsWith( $filePath, [ 'http://', 'https://', 'data:', 'blob:', ] ) ) { return $filePath; } if (\Illuminate\Support\Str::startsWith($filePath, '/')) { return url($filePath); } return asset( 'core/storage/app/public/' . ltrim($filePath, '/') ); }; /* |-------------------------------------------------------------------------- | School Logo |-------------------------------------------------------------------------- */ $schoolLogoRaw = $schoolProfile?->logo ?? $schoolProfile?->image ?? $schoolProfile?->school_logo ?? null; $schoolLogo = $generateFileUrl($schoolLogoRaw); /* |-------------------------------------------------------------------------- | Student Information |-------------------------------------------------------------------------- */ $studentName = $student?->student_name_english ?? $student?->student_name ?? 'N/A'; $studentId = $student?->admission_roll ?? $student?->student_id ?? 'N/A'; $sessionName = $registration?->session?->name ?? 'N/A'; $className = $registration?->class?->name ?? 'N/A'; $sectionName = $registration?->section?->name ?? 'N/A'; $groupName = $registration?->group?->name ?? 'N/A'; $roll = $registration?->class_roll ?? 'N/A'; $studentSms = $student?->sms_number ?? 'N/A'; $fatherName = $student?->father_name_english ?? $student?->father_name ?? 'N/A'; $motherName = $student?->mother_name_english ?? $student?->mother_name ?? 'N/A'; $guardianName = $student?->guardian_name ?? 'N/A'; /* |-------------------------------------------------------------------------- | Student Photo |-------------------------------------------------------------------------- */ $studentPhotoRaw = $student?->student_image ?? $student?->student_photo ?? $student?->photo ?? $student?->image ?? $student?->profile_photo ?? null; $studentPhoto = $generateFileUrl($studentPhotoRaw); @endphp
{{-- Toolbar --}}
Parent Application QR Code

Student information সহ printable QR card তৈরি করা হয়েছে।

{{-- Printable Area --}}
{{-- School Header --}}
@if($schoolLogo) @endif
{{ $schoolName }}
@if($schoolAddress)
{{ $schoolAddress }}
@endif @if( $schoolPhone || $schoolEiin || $schoolCode || $collegeCode || $schoolEmail )
@if($schoolPhone) Phone: {{ $schoolPhone }} @endif @if($schoolEiin) EIIN: {{ $schoolEiin }} @endif @if($schoolCode) School Code: {{ $schoolCode }} @endif @if($collegeCode) College Code: {{ $collegeCode }} @endif @if($schoolEmail) Email: {{ $schoolEmail }} @endif
@endif
{{-- QR Title --}}

Scan QR Code for Parent Application

{{-- QR Code --}}
{!! $qrSvg !!}
{{-- Main Content --}}
{{-- Student Information --}}
{{ $studentName }}
Class Roll: {{ $roll }}
Session: {{ $sessionName }}
Class: {{ $className }}
Section: {{ $sectionName }}
Group: {{ $groupName }}
{{-- Student Photo --}}
👤
@if($studentPhoto) {{ $studentName }} @endif
{{-- Instructions --}}
● ব্যবহারের নির্দেশনা
  1. মোবাইলের Camera অথবা QR Scanner চালু করুন।
  2. উপরের QR Code টি Scan করুন।
  3. Parent Application Form ওপেন হবে।
  4. প্রয়োজনীয় তথ্য সঠিকভাবে পূরণ করে Submit করুন।
  5. যদি কোনো তথ্য সংশোধনের প্রয়োজন হয় অথবা তথ্য ভুল থাকে, তাহলে পুনরায় আবেদন করুন এবং একই আবেদনের মধ্যে সকল ছাত্র/ছাত্রীর তথ্য যুক্ত করুন।
{{-- Footer --}}