Attractions

@if ($canAdd) @endif
@if (session('success'))
Success! {{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
List of Attractions
@if ($attractions->count() == 0) @else @foreach ($attractions as $attraction) @endforeach @endif
Name Location Holiday Entry Type Photo Created On
No attractions found
{{ $attraction->name }} @if($attraction->location_id != 0 && $attraction->location) {{ $attraction->location->name }}, ({{ $attraction->location->city->name }},{{ $attraction->location->city->state->name }}, {{ $attraction->location->city->state->country->name }}) @else No Location @endif {{ $attraction->holiday }} @if( $attraction->free_ticket == '1') Free Entry @elseif( $attraction->free_ticket == '0') @endif @if(!empty($attraction->image_path) && file_exists(public_path('storage/resize/' . $attraction->image_path))) {{ $attraction->name }} @elseif(!empty($attraction->image_path) && file_exists(public_path('storage/'.$attraction->image_path))) {{ $attraction->name }} @else @endif {{ $attraction->created_at }} @if ($canEdit) Edit @endif @if ($canDelete) Delete @endif