@include('admin.print-list.font-configs') @php /* NOTE : WKTMLTOPDF doesn't use the actual browser domain to resolve the files. The wkhtmltopdf binary is on your machine and needs the real file path to the associated files like images and stylesheets. With public_path() you get the full path string like /var/www/html/public/css/mycss.css instead of http://example.org/css/mycss.css. We used therefore public_path instead of asset which generated a timeout */ $img = public_path('project/images/export/compo.png'); if (isset($dev)) { $img = asset('project/images/export/compo.png'); } @endphp
icone

Liste de composition

∘ Niveau : {{$exam->niveauformation." ".$exam->annee}}
∘ Filière : {{$exam->sigleFilieres}}
∘ Cours : {{$exam->intituleEcu}}
∘ Enseignant : {{$exam->prof}}
∘ Date de composition : {{$exam->formated_date." à ".$exam->heure}}
{{--
@if (count($list)) @foreach ($list as $vague => $students) @php date_default_timezone_set('Africa/Porto-Novo'); $duree_vague = $students[0]->duree; // $debut_compo_vague = strtotime($exam->heure) + (($vague-1) * ($duree_vague + $exam->pause) * 60); $debut_compo_vague = strtotime($exam->heure) + ($vague * ($duree_vague + $exam->pause) * 60); $debut_compo_vague = date("H:i:s", $debut_compo_vague); @endphp

VAGUE N°{{$vague}}

Heure de composition : {{$debut_compo_vague}}

@foreach ($students as $i => $student)
{{$i + 1}}. {{$student->nom ." ".$student->prenom}}
@endforeach
@endforeach @else
Aucune vague présente pour cet examen !
@endif
--}}
@if (count($list)) @foreach ($list as $vague => $students) @php date_default_timezone_set('Africa/Porto-Novo'); $duree_vague = $students[0]->duree; // $debut_compo_vague = strtotime($exam->heure) + (($vague-1) * ($duree_vague + $exam->pause) * 60); $debut_compo_vague = strtotime($exam->heure) + ($vague * ($duree_vague + $exam->pause) * 60); $debut_compo_vague = date("H:i:s", $debut_compo_vague); @endphp
@foreach ($students as $i => $student) @endforeach

VAGUE N°{{$vague + 1}}

Heure de composition : {{$debut_compo_vague}}

Matricule Nom & Prénoms Contact Signature
{{$i + 1}} {{$student->matricule}} {{$student->nom ." ".$student->prenom}} {{$student->adresse}}
@endforeach @else
Aucune vague présente pour cet examen !
@endif