@extends('layouts.admin') @section('content') @if ($message = Session::get('success')) @elseif ($message = Session::get('error')) @endif

Route

@csrf
{{ $errors->first('region_id') }}
{{ $errors->first('route_name') }}
{{ $errors->first('pdf') }}
@if($is_holiday_route == 0)
{{ $errors->first('route_type') }} @elseif ($is_holiday_route == 1)
{{ $errors->first('route_type') }} @elseif($is_holiday_route == 2)
{{ $errors->first('route_type') }} @endif

Stop1

{{ $errors->first('stops[0][stop_name]') }}
{{ $errors->first('stops[0][arr_time]') }}
{{ $errors->first('stops[0][dep_time]') }}
@php $i=1; $j=1;@endphp @foreach($stops as $key => $value) @php if($i==1){ $i++; continue; } @endphp

Stop{{++$j}}

{{ $errors->first('stops[$j-1][stop_name]') }}
{{ $errors->first('stops[$j-1][arr_time]') }}
{{ $errors->first('stops[$j-1][dep_time]') }}
@endforeach
@endsection @section('page_scripts') @endsection