@extends('master') @section('content')
@include('admin.layout.breadcrumbs', [ 'title' => __('Events'), ])
@if (session('status')) @endif

{{ __('All Events') }}

@can('event_create') @endcan
@if (Auth::user()->hasRole('admin')) @endif @if (Gate::check('event_edit') || Gate::check('event_delete')) @endif @if (Gate::check('ticket_access')) @endif @if (Gate::check('event_edit')) @endif @foreach ($events as $item) @if (Auth::user()->hasRole('admin')) @endif @if (Gate::check('event_edit') || Gate::check('event_delete')) @endif @if (Gate::check('ticket_access')) @endif @if (Gate::check('event_edit')) @endif @endforeach
{{ __('Image') }} {{ __('Name') }} {{ __('Start Date') }} {{ __('Number of People') }} {{ __('Category') }}{{ __('Organization') }}{{ __('Status') }}{{ __('Action') }}{{ __('Tickets') }}{{ __('FAQs') }}
{{ $item->name }}

{{ Carbon\Carbon::parse($item->start_time)->format('Y-m-d h:i a') . ', ' . $item->start_time->format('l') }}

{{ $item->people }} {{ $item->category->name }}{{ $item->organization->first_name . ' ' . $item->organization->last_name }}
{{ $item->status == '1' ? 'Publish' : 'Draft' }}
@can('event_edit') @endcan @can('event_delete') @endcan {{ __('Manage Tickets') }} {{ __('Manage FAQs') }}
@endsection