@extends('backend.superadmin.index') @section('body')

Event List

@if(session('success'))
@endif @if(session('error'))
@endif @if($errors->any())
@endif
Title
Category
Type
Sponsor
@foreach($events as $key=>$event) @endforeach
SN Image Title Category Type Status Expiry Date By Action
{{++$key}} @php if (isset($event->client_id)){ $client = \App\Client\Client::find($event->client_id); $user = \App\User::find($client->user_id); $image_url = config('filesystems.asset').'/'.'clients'.'/'.$user->name.'/event'; }else{ $image_url = config('filesystems.asset').'/'.'event'; } @endphp @if (isset($event->image)) @else @endif {{$event->title}}
@if(isset($event->end_at)) From: {{$event->start_at}} To: {{$event->end_at}} @else on {{$event->start_at}} @endif
{{$event->event_type->name}} @if($event->type=='General') {{$event->type}} @else {{$event->type}} @endif @if($event->post_date > date('Y-m-d')) Draft @elseif($event->expiry_date < date('Y-m-d')) Expired @elseif($event->status=='Pending') Pending @else Active @endif {{$event->expiry_date}} {{$event->user->name}}
@endsection