@extends('user.layout.base') @section('title', 'My Trips ') @section('content')

@lang('user.my_trips')


@if($trips->count() > 0) @foreach($trips as $trip) @if($trip->provider_name !=null) @else @endif @if($trip->status =='COMPLETED') @else @endif @endforeach
  @lang('user.booking_id') @lang('user.date') @lang('user.profile.name') @lang('user.amount') @lang('user.type') @lang('user.payment') Status
@lang('user.from')
{{date('H:i A - d-m-y', strtotime($trip->started_at))}}

{{$trip->s_address}}

@lang('user.to')
{{date('H:i A - d-m-y', strtotime($trip->finished_at))}}

{{$trip->d_address}}

@lang('user.payment')
@if($trip->corporate_id !=0) CORPORATE @else {{$trip->payment_mode}} @endif
@lang('user.amount')
@if($trip->status =='COMPLETED') {{ $trip->total }} @else - @endif
@lang('user.profile.name')
@if($trip->provider_name !=null) {{$trip->provider_name}} @else - @endif
@if($trip->rating)
Rating
{{$trip->rating->user_comment}}
@else - @endif
@else

No trips Available

@endif
@endsection @section('scripts') @endsection