@extends('layouts.app') @section('content')
| {{ __('site.table_id') }} | {{ __('site.table_project_nature') }} | {{ __('site.table_status') }} | {{ __('site.table_actions') }} | {{ __('site.table_start_activity') }} |
|---|---|---|---|---|
| {{ $projet->id_projet }} | {{-- nature du projet: use trans_field so it picks nature_ar / nature_fr / nature_en / nature_G --}}{{trans_field($projet->natureProjet, 'nature') ?? __('site.not_specified') }} | {{-- statut: use trans_field on the related statut record --}}@php $statut = trans_field($projet->statut, 'statut') ?? __('site.status_en_attente'); $badgeClass = match($projet->id_statut) { 1 => 'status-badge--success', 2 => 'status-badge--pending', 3 => 'status-badge--danger', 4 => 'status-badge--pending', // conditional/approval under conditions 5 => 'status-badge--pending', // deferred 6 => 'status-badge--muted', // draft }; @endphp {{ $statut }} |
@if($projet->id_statut == 1)
@php
$etat = optional($projet->debutActivite)->etat_formulaire;
@endphp
@if(is_null($projet->debutActivite) || $etat === 'non_remplir')
@elseif($etat === 'remplir' || $etat === 'reponse')
@endif
@endif
|
|
| {{ __('site.no_forms') }} | ||||