@extends('backend.layouts.admin.app') @section('content') Locations {{$title}} {{$title}} @include('backend.layouts.alert') @csrf @if(isset($pageData) && $pageData) @method('PUT') @endif Name of the Location @if ($errors->has('name')) {{ $errors->first('name') }} @endif Terminal (Stamping) @if ($errors->has('terminal')) {{ $errors->first('terminal') }} @endif Address @if ($errors->has('address')) {{ $errors->first('address') }} @endif Latitude @if ($errors->has('latitude')) {{ $errors->first('latitude') }} @endif Longitude @if ($errors->has('longitude')) {{ $errors->first('longitude') }} @endif Get Location Link of Google Map @if ($errors->has('google_map_link')) {{ $errors->first('google_map_link') }} @endif Site Select Site Type Loading Site Offloading Site @if ($errors->has('type')) {{ $errors->first('type') }} @endif Type Select Type @foreach($locationTypes as $locationType) id ? 'selected' : '' }}>{{ ucwords($locationType->name) }} @endforeach @if ($errors->has('location_type')) {{ $errors->first('location_type') }} @endif Access Requirements @if ($errors->has('access_requirements')) {{ $errors->first('access_requirements') }} @endif Cargo Details @if ($errors->has('cargo_details')) {{ $errors->first('cargo_details') }} @endif Loading/Offloading Instructions {{ old('loading_offloading_instructions', $pageData['loading_offloading_instructions'] ?? '') }} @if ($errors->has('loading_offloading_instructions')) {{ $errors->first('loading_offloading_instructions') }} @endif Load/Offload Time 24/7 Time Range Start Time Select Start Time @for($hour = 0; $hour <= 23; $hour++) @for($minute = 0; $minute <= 30; $minute += 30) @php $time = sprintf('%02d:%02d', $hour, $minute); $selected = old('range_start', isset($pageData['range_start']) && $pageData['range_start'] ? $pageData['range_start']->format('H:i') : '') == $time ? 'selected' : ''; @endphp {{ $time }} @endfor @endfor @if ($errors->has('range_start')) {{ $errors->first('range_start') }} @endif End Time Select End Time @for($hour = 0; $hour <= 23; $hour++) @for($minute = 0; $minute <= 30; $minute += 30) @php $time = sprintf('%02d:%02d', $hour, $minute); $selected = old('range_end', isset($pageData['range_end']) && $pageData['range_end'] ? $pageData['range_end']->format('H:i') : '') == $time ? 'selected' : ''; @endphp {{ $time }} @endfor @endfor @if ($errors->has('range_end')) {{ $errors->first('range_end') }} @endif @if(isset($pageData) && $pageData) Status Active Inactive @if ($errors->has('status')) {{ $errors->first('status') }} @endif @endif Select Location × Search Location: Selected Location Details: Address: No location selected Latitude: - Longitude: - Instructions: Use the search box to find a location Click on the map to place a marker Drag the marker to adjust position Click "Select Location" to confirm @endsection
No location selected
-