@extends('admin.layouts.app') @section('title', 'Main page') @section('content')
@csrf
{{ $errors->first('transport_type') }}
{{ $errors->first('type') }}
@php $card = $cash = $wallet = ''; @endphp @if (old('payment_type')) @foreach (old('payment_type') as $item) @if ($item == 'card') @php $card = 'selected'; @endphp @elseif($item == 'cash') @php $cash = 'selected'; @endphp @elseif($item == 'wallet') @php $wallet = 'selected'; @endphp @endif @endforeach @else @php $paymentType = explode(',',$zone_price->zoneType->payment_type); @endphp @foreach ($paymentType as $val) @if ($val == 'card') @php $card = 'selected'; @endphp @elseif($val == 'cash') @php $cash = 'selected'; @endphp @elseif($val == 'wallet') @php $wallet = 'selected'; @endphp @endif @endforeach @endif
{{ $errors->first('payment_type') }}
@if ($zone_price->price_type == 1)

Ride Now

{{ $errors->first('ride_now_base_price') }}
{{ $errors->first('ride_now_price_per_distance') }}
{{ $errors->first('ride_now_base_distance') }}
{{ $errors->first('ride_now_price_per_time') }}
{{ $errors->first('ride_now_cancellation_fee') }}
@else

Ride Later

{{ $errors->first('ride_later_base_price') }}
{{ $errors->first('ride_later_price_per_distance') }}
{{ $errors->first('ride_later_base_distance') }}
{{ $errors->first('ride_later_price_per_time') }}
{{ $errors->first('ride_later_cancellation_fee') }}
@endif
@endsection