@extends('layouts.master') @section('title',__('All Live Events')) @section('breadcum') @endsection @section('maincontent')
{{ __('All Live Events') }}
@can('liveevent.delete') @endcan @can('liveevent.create') {{ __('Add Live Event') }} @endcan {{-- Bulk Delete Model Start --}} {{-- Bulk Delete Model End --}} {{-- Impport Model Start --}} {{-- Import Model End --}}
@if(isset($liveevent) && count($liveevent) > 0) @foreach($liveevent as $item) @php if($item->thumbnail != NULL){ $content = @file_get_contents(public_path() .'/images/events/thumbnails/' . $item->thumbnail); if($content){ $image = public_path() .'/images/events/thumbnails/' . $item->thumbnail; }else{ $image = Avatar::create($item->title)->toBase64(); } }else{ $image = Avatar::create($item->title)->toBase64(); } $imageData = base64_encode(@file_get_contents($image)); if($imageData){ $src = 'data: '.mime_content_type($image).';base64,'.$imageData; } @endphp
@if($src != NULL) ... @endif
{{$item->title}}
{{__('Start Time')}}

{{isset($item->start_time) && $item->start_time != NULL ? date('Y/m/d, h:i:s a',strtotime($item->start_time)) : '-' }}

{{__('End Time')}}

{{isset($item->end_time) && $item->end_time != NULL ? date('Y/m/d, h:i:s a',strtotime($item->end_time)) : '-' }}

{{__('Organized By')}}

{{isset($item->organized_by) && $item->organized_by ? $item->organized_by : '-' }}

{{__('Description')}}

{{isset($item->description) && $item->description ? str_limit($item->description,50) : '-' }}

@endforeach
{!! $liveevent->appends(request()->query())->links() !!}
@else
{{__("Let's start :)")}}
{{__('Get Started by creating a liveevent ! All of your liveevents will be displayed on this page.')}}
@endif
@endsection @section('script') @endsection