Liste des Resoources

@foreach($headings as $heading) @endforeach @foreach ($resources as $resource) @php if (!function_exists('translateResourceValue')) { function translateResourceValue($value, $key) { if (is_null($value)) return ''; $trans = __("resource.{$key}.{$value}"); return $trans !== "resource.{$key}.{$value}" ? $trans : $value; } } if (!function_exists('formatBoolean')) { function formatBoolean($value): string { return $value ? 'Oui' : 'Non'; } } @endphp @endforeach
{{ $heading }}
{{ $resource->academicYear->year_name ?? '' }} {{ $resource->establishment->name ?? '' }} {{ $resource->name ?? '' }} {{ $resource->description ?? '' }} {{ translateResourceValue($resource->type, 'type_values') }} {{ translateResourceValue($resource->resource_kind, 'resource_kind_values') }} {{ $resource->file_path ?? '' }} {{ $resource->file_size ?? '' }} {{ $resource->file_type ?? '' }} {{ $resource->external_url ?? '' }} {{ $resource->visioconf_public_url ?? '' }} {{ $resource->visioconf_moderator_url ?? '' }} {{ formatBoolean($resource->is_shareable) }} {{ $resource->createdByUser->username ?? '' }} {{ $resource->created_at ? \Carbon\Carbon::parse($resource->created_at)->format('d/m/Y H:i') : '' }}