@foreach ($students as $result)

{{ $result->name }}

has sat for the 2022 Basic Arabic and Islamic Certificate Examanination (BAICE) and has obtained the grades listed below

Gender: @if ($result->gender == 'M') Male @elseif ($result->gender == 'F') Female @endif
Exam Number: {{ $result->candidate_no }}
{{--

000{{ $result->school->id }}{{ $result->id }}

--}}
@php $eng = $result->result ? $result->result['English'] : null; $math = $result->result ? $result->result['Mathematics'] : null; $basictech = $result->result ? $result->result['Basic_tech'] : null; $pvc = $result->result ? $result->result['Pre_vocattional'] : null; $nat = $result->result ? $result->result['National_values'] : null; $hausa = $result->result ? $result->result['Hausa'] : null; $irs = $result->result ? $result->result['Irs'] : null; $irs2 = $result->result ? $result->result['Irs2'] : null; $ihs = $result->result ? $result->result['Islamic_history_sirah'] : null; $sirah = $result->result ? $result->result['Sirah'] : null; $arabic = $result->result ? $result->result['Arabic1'] : null; $arabic2 = $result->result ? $result->result['Arabic2'] : null; $hadith = $result->result ? $result->result['Hadith'] : null; $bus = $result->result ? $result->result['Business_studies'] : null; $cca = $result->result ? $result->result['Cultural_creative'] : null; // $yoruba = $result->studentgrades ? $result->studentgrades->where('subject_id', 6)->first() : null; // $igbo = $result->studentgrades ? $result->studentgrades->where('subject_id', 7)->first() : null; // $hist = $result->studentgrades ? $result->studentgrades->where('subject_id', 14)->first() : null; // $french = $result->studentgrades ? $result->studentgrades->where('subject_id', 55)->first() : null; // $qrd = base64_encode($result->examnumber); // $sch = base64_encode($result->school_id); // $ur = 'https://erd.kssqaa.org/certificate/' . $sch . '/' . $qrd; $ur = [ $result->name,$result->candidate_no,"BAICE"]; @endphp @if ($eng != null && $eng != 'F') @endif @if ($math != null && $math != 'F') @endif @if ($basictech != null && $basictech != 'F') @endif @if ($pvc != null && $pvc != 'F') @endif @if ($nat != null && $nat != 'F') @endif @if ($hausa != null && $hausa != 'F') @endif @if ($irs != null && $irs != 'F') @endif @if ($irs2 != null && $irs2 != 'F') @endif @if ($ihs != null && $ihs != 'F') @endif @if ($ihs == null) @if ($sirah != null && $sirah != 'F') @endif @endif @if ($arabic != null && $arabic != 'F') @endif @if ($arabic == null) @if ($arabic2 != null && $arabic2 != 'F') @endif @endif @if ($hadith != null && $hadith != 'F') @endif @if ($bus != null && $bus != 'F') @endif @if ($cca != null && $cca != 'F') @endif {{-- @if ($crs != null && $crs->disp == 1) @endif @if ($yoruba != null && $yoruba->disp == 1) @endif @if ($igbo != null && $igbo->disp == 1) @endif @if ($hist != null && $hist->disp == 1) @endif @if ($french != null && $french->disp == 1) @endif --}}
Subject Grade
English Language {{ $eng }}
Mathematics {{ $math }}
Basic Technology {{ $basictech }}
Pre-vocational Studies {{ $pvc }}
National Values {{ $nat }}
Hausa Language {{ $hausa }}
Islamic Religious Studies {{ $irs }}
Islamic Religious Studies II {{ $irs2 }}
Islamic History {{ $ihs }}
Islamic History {{ $sirah }}
Arabic Language {{ $arabic }}
Arabic Language {{ $arabic2 }}
Hadith {{ $hadith }}
Business Studies {{ $bus }}
Cultural and Creative Arts {{ $cca }}
Christian Religious Studies {{ $crs ? $crs->grade : '' }}
Yoruba {{ $yoruba ? $yoruba->grade : '' }}
Igbo {{ $igbo ? $igbo->grade : '' }}
History {{ $hist ? $hist->grade : '' }}
French {{ $french ? $french->grade : '' }}
******************************** ***

School Attended:

{{ $result->school->name }}

{{ QrCode::size(80)->style('dot')->eye('circle')->margin(1)->generate('xcvb') }}
@endforeach