@extends('layouts.layoutMaster') @section('title', ($model->id ? 'Update' : 'Create') . ' Location') @php $m = 'App\\Models\\Location'; $labels = Helper::getModelLabels($m); $breadcrumbs = [ ['url' => route('dashboard'), 'label' => 'Dashboard'], ['url' => route('location.index'), 'label' => 'Locations'], ]; if ($model->id) { $breadcrumbs[] = [ 'url' => route('location.show', ['location' => $model->id]), 'label' => $model->name, ]; $breadcrumbs[] = [ 'url' => route('location.edit', ['location' => $model->id]), 'label' => 'Update Location', ]; } else { $breadcrumbs[] = [ 'url' => route('location.create'), 'label' => 'Create Location', ]; } @endphp @section('content')
{{ $model->id ? 'Edit' : 'New' }} Location

{{ $model->id ? 'Update location information' : 'Fill in the details below to create a new location' }}

@csrf @if ($model->id) @method('PUT') @endif
@error('name')
{{ $message }}
@enderror
Enter the city or area name that will be used as origin or destination in routes.
Cancel
@endsection