@extends('layouts.admin') @section('content') @php $name=date('d F y h:i A'); $sequence_from=''; $sequence_to=''; $buttonName = "Submit"; $title = "Add Route"; $edit = false; if(isset($routeDetail)){ $buttonName = "Update"; $title = "Edit Route"; $edit = true; } @endphp
@if ($message = Session::get('success'))
@endif @if ($errors->any()) @endif @if($action=='Edit')
{{ method_field('PUT') }} @else @endif @csrf

{{ $title }}

@if(old('name')) @php $name=old('name'); @endphp @elseif(isset($routeDetail)) @php $name=$routeDetail->name; @endphp @endif @error('name') {{ $message }} @enderror
@if(old('sequence_from')) @php $sequence_from=old('sequence_from'); @endphp @endif
@if(old('sequence_to')) @php $sequence_to=old('sequence_to'); @endphp @endif
@include('routes.add_listing')
@endsection