@extends('layouts.master') @section('title', 'Express54') @section('content') @php //$id = request()->query('id'); $child = request()->query('childServiceId'); //echo $id."::".$child; $Titres = [ 1 => "MESRS", 2 => "METFPA" ]; $sousTitres = [ 25 => "Secours", 27 => "Attributions", 28 => "Renouvellement", 26 => "Attributions", 29 => "Renouvellement", 23 => "Secours", ]; $titre = $Titres[$id] ?? null; $soustitre = $sousTitres[$child] ?? null; // null si l'ID ne correspond à aucun @endphp


@if (Session('error')) @endif @if (Session('success')) @endif
@lang('messages.back')

{{$soustitre}} approuvé(e)s - {{$titre}}

@foreach ($acceptedApplications as $application) @php $filePath = "public/pdf/application_{$application->id}.pdf"; $fileUrl = asset("storage/pdf/application_{$application->id}.pdf"); $fileExists = Storage::exists($filePath); @endphp @if ($application->status != 'Draft') @endif @endforeach @if ($i == 1) @endif @if ($id == 1 || $id == 3) @endif
# @lang('messages.full_name') @lang('messages.status') Cas Chef de service @lang('messages.action') Montant Certificat Université Année étude Formation Signature
{{ $i }} {{ strtoupper($application->fname) }} {{ $statusLabels[$application->status] ?? $application->status }} {{ $application->employe_name }} {{ $supervisorLabels[$application->supervisor_approval] ?? $application->supervisor_approval }} {{ number_format($application->total_amount, 0, ',', ' ') }} @if ($fileExists) @else N/A @endif {{ $application->university }} {{ $application->annee_detude }} {{ $statusBourses[$application->typebourse] ?? $application->typebourse }} @if ($application->status === 'Approved' && $application->supervisor_approval === 'Approved') @if ($application->signature_request === 'Request') Request Sent @elseif ($application->signature_request === 'Signed') Signé @else En attente @endif @endif
@lang('messages.noapplication')


@endsection