@extends('layouts.app') @section('content')
{{ isset($vehicle) ? 'Edit Vehicle' : 'Create Vehicle' }}
Back
@include('partials.errors')
@csrf @if(isset($vehicle)) @method('PUT') @endif
Only lowercase letters, numbers and hyphens (-) are allowed.
@php $pickupPoints = old( 'pickup_points', $vehicle->pickup_points ?? [] ); if (is_string($pickupPoints)) { $pickupPoints = json_decode($pickupPoints, true) ?? []; } if (empty($pickupPoints)) { $pickupPoints = ['']; } @endphp
@foreach($pickupPoints as $index => $pickup)
@endforeach
@php $dropPoints = old( 'drop_points', $vehicle->drop_points ?? [] ); if (is_string($dropPoints)) { $dropPoints = json_decode($dropPoints, true) ?? []; } if (empty($dropPoints)) { $dropPoints = ['']; } @endphp
@foreach($dropPoints as $index => $drop)
@endforeach
@endsection