@extends('layouts.app') @section('title', 'Activités') @section('content')

Liste des Activités

Toutes les activités
@php $usergroupId = Auth::user()->usergroup_id; @endphp @if(!in_array($usergroupId , [3, 4, 5, 6])) Ajouter une activité @endif
@foreach($activites as $a) {{-- Actif --}} {{-- Ouvert --}} {{-- Actions --}} @endforeach
Code & Nom Groupe Action Responsable Montant Actif Ouvert Actions
{{ $a->code }} : {{ $a->nom }} {{ $a->groupeactivite->nom ?? '-' }} {{ $a->action->nom ?? '-' }} {{ $a->structureresponsable->nom ?? '-' }} {{ $a->montant ? number_format($a->montant, 0, '', ' ') : '-' }} @if(in_array($usergroupId, [3,4,6])) @endif @if(in_array($usergroupId, [1,2,5])) {{ $a->actif ? 'Oui' : 'Non' }} @endif @if(in_array($usergroupId, [3,4,5,6])) @endif @if(in_array($usergroupId, [1,2])) {{ $a->ouvert ? 'Ouvert' : 'Fermé' }} @endif @if(!in_array($usergroupId, [3,4,5,6])) @if(!$a->valide) @if(in_array($usergroupId, [1,2])) @endif @endif @endif
@endsection