@extends('welcome') @section('title', 'Fichiers') @section('styles') @endsection @section('content')
{{ $dossier->name }}: Fichiers
@if (Auth::user()->role_id == 1) @endif
@forelse ($fichiers as $fichier)
@if (in_array(pathinfo($fichier->path, PATHINFO_EXTENSION), ['jpg', 'jpeg', 'png', 'gif'])) {{ $fichier->name }} @else Placeholder Image @endif
{{$fichier->path}} Télécharger @if (Auth::user()->role_id == 1) @endif
@empty
@endforelse
@method('DELETE') @csrf
@csrf @method('DELETE')
@endsection @section('scripts') @endsection