@extends('backend.layouts.master') @section('title') Events @endsection @section('main-content') @include('backend.layouts.notification')
Events
@if(count($events)>0) @foreach($events as $event) @php $cat_info=DB::table('event_categories')->select('title')->where('id',$event->event_cat_id)->get(); @endphp @endforeach
ID Title Objective Tag Photo Status Action
{{$event->id}} {{$event->title}} {!!$event->objective!!} {{$event->tags}} @if($event->photo) {{ Storage::url($event->photo) }} @else avatar.png @endif @if($event->status=='active') {{$event->status}} @else {{$event->status}} @endif
@csrf @method('delete')
{{$events->links()}} @else
No events found!!! Please create events
@endif
@endsection @push('styles') @endpush @push('scripts') @endpush