@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($usergroupId != 3 && $usergroupId != 4) Activité @endif @foreach($activites as $a) @endforeach
Code & Nom Action Actif Ouvert Actions
{{ $a->code }}:{{ $a->nom }} {{ $a->action->nom ?? '-' }} @if(Auth::user()->usergroup_id == 4) @else {{ $a->actif ? 'Oui' : 'Non' }} @endif @if(Auth::user()->usergroup_id == 4) @else {{ $a->ouvert ? 'Ouvert' : 'Fermé' }} @endif @if($usergroupId != 3 && $usergroupId != 4) @endif
@endsection