@foreach($cards as $c)
@if(!empty($schoolInfo->school_logo) && file_exists(public_path('core/storage/app/public/' . $schoolInfo->school_logo))) @php $path = public_path('core/storage/app/public/' . $schoolInfo->school_logo); $type = pathinfo($path, PATHINFO_EXTENSION); $data = file_get_contents($path); $base64 = 'data:image/' . $type . ';base64,' . base64_encode($data); @endphp logo @endif

{{ $schoolInfo->school_name ?? 'School Name' }}

{{ $schoolInfo->address ?? 'School Address' }}

CLASS ROUTINE - {{ $sessionName }} || For @if($filterTeacher && $filterTeacher == 'any') TEACHER: {{ $c['title'] }} @elseif($filterClass) CLASS: {{ $c['title'] }}
@endif
{!! $c['routines'] !!}
@endforeach