@extends('frontend.layouts.app') @section('title', 'LES ÉVÉNEMENTS') @section('content')
@foreach($events as $event)
@if(Storage::disk('public')->exists('events/'.$event->img)) {{ getTranslationEvent($event->id)['title'] }} @elseif(Storage::disk('public')->exists('agendas/'.$event->img)) {{ getTranslationEvent($event->id)['title'] }} @endif
{{ \Carbon\Carbon::parse($event->date_d)->format('d')}}
{{ \Carbon\Carbon::parse($event->date_d)->format('M')}}

{{ \Carbon\Carbon::parse($event->date_d)->format('Y')}}

{{ \Carbon\Carbon::parse($event->date_d)->format('M')}} {{ \Carbon\Carbon::parse($event->date_d)->format('d')}}, {{ \Carbon\Carbon::parse($event->date_d)->format('Y')}} - {{ \Carbon\Carbon::parse($event->date_f)->format('M')}} {{ \Carbon\Carbon::parse($event->date_f)->format('d')}}, {{ \Carbon\Carbon::parse($event->date_f)->format('Y')}}
@endforeach
    {{$events->links()}}
@endsection @section('scripts') @endsection