@extends('admin.layouts.app') @section('title', 'Main page') @section('content')
@csrf
{{ $errors->first('transport_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('admin_commision_type') }}
{{ $errors->first('admin_commision') }}
{{ $errors->first('admin_commission_type_from_owner') }}
{{ $errors->first('admin_commission_from_owner') }}
{{ $errors->first('admin_commission_type_from_driver') }}
{{ $errors->first('admin_commission_from_driver') }}
{{ $errors->first('service_tax') }}
{{ $errors->first('order_number') }}

{{-- Ride now price --}} @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') }}
{{ $errors->first('ride_now_waiting_charge') }}
{{ $errors->first('ride_now_free_waiting_time_in_mins_before_trip_start') }}
{{ $errors->first('ride_later_free_waiting_time_in_mins_after_trip_start') }}
@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') }}
{{ $errors->first('ride_later_free_waiting_time_in_mins_before_trip_start') }}
{{ $errors->first('ride_now_ride_now_free_waiting_time_in_mins_after_trip_start') }}
@endif
@endsection