@extends('layouts.app') @section('pageTitle', 'Home') @section('content')

Locations List

@if(request()->has('locationType') || request()->has('name')) @foreach($locations as $location) @endforeach
Name Location Type Parent Image Action
$location->id]) }}">{{ $location->name }} {{ $location->type }} @if($location->mainCategory){{ $location->mainCategory->name }}@endif @if($location->image) @endif $location->id]) }}" class="btn btn-sm btn-primary">Edit $location->id]) }}" class="btn btn-sm btn-danger" onClick="return confirm('Are you sure you want to delete this item?');">Delete
{{ $locations->appends(request()->query())->links() }}
@else

Please enter search criteria to view locations.

@endif
@endsection