@extends('user.user_master') @section('user.user_content') @php $course = \App\Models\CoursePage::orderBy('id', 'DESC')->get(); @endphp @section('user_title') Events - Event Lists @endsection @php $images = \App\Models\Theme::find(1); @endphp

@if(session()->get('language') == 'nepali') {{ \Stichoza\GoogleTranslate\GoogleTranslate::trans('Events', 'ne') }} @else Events @endif

@if(session()->get('language') == 'nepali') {{ \Stichoza\GoogleTranslate\GoogleTranslate::trans('Self-education is, I firmly believe, the only kind of education there is.', 'ne') }} @else Self-education is, I firmly believe, the only kind of education there is. @endif
@foreach($events as $event)
@php $new_date = date('jS', strtotime($event->event_date)); $month = date('m Y', strtotime($event->event_date)); @endphp

{{$new_date}}

{{$month}}

@if(session()->get('language') == 'nepali') {{ \Stichoza\GoogleTranslate\GoogleTranslate::trans($event->location, 'ne') }} @else {{$event->location}} @endif
@php $year = $event->created_at->format('Y'); $month = $event->created_at->format('m'); $day = $event->created_at->format('d'); $date = Bsdate::eng_to_nep($year, $month, $day); echo $date['nmonth'] . ' ' . $date['date'] .','. ' ' . $date['year']; @endphp
@endforeach
@endsection