@extends('admin.layouts.default') @section('title') | Payments @endsection @section('content')
Payment ID | Ride ID | Date | Child Safety seats | {{--First Ride Discount | --}}Round Trip Discount | Pre Arranged Charges | Stoppage Charges | Vehicle Base Price | Ride charge | Tax | Tip | Coupon Discount | Payment Method | Total Amount | Action | |||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{ $payment['id'] }} | {{ $payment['ride_reservation_id'] }} | {{\Carbon\Carbon::parse($payment['created_at'])->format('Y-m-d g:i A') }} | @if($payment->child_safety_seat_rate != 0) @endif${{ $payment['child_safety_seat_rate'] }} | {{--${{ $payment['first_ride_discount'] }} | --}}${{ $payment['round_trip_discount'] }} | ${{ $payment['pre_arranged_charges'] }} | ${{ $payment['stoppage_charge'] }} | {{ $payment['vehicle_base_price'] ? '$'.$payment['vehicle_base_price'] : '--' }} | ${{ $payment['cost'] - (isset($payment['vehicle_base_price']) ? $payment['vehicle_base_price'] : '0') }} | ${{ $payment['tax'] }} | @if ($payment->rideReservation->round_trip_detail == null || $payment->rideReservation->round_trip_detail->status == 'Cancel')${{ $payment->rideReservation['driver_tip_amount'] }} | @else${{ $payment->rideReservation['driver_tip_amount']*2 }} | @endif @if ($payment->rideReservation->round_trip_detail == null || $payment->rideReservation->round_trip_detail->status == 'Cancel')${{ $payment->rideReservation['discount_amount'] != null ? $payment->rideReservation['discount_amount'] : 0 }} | @else${{ $payment->rideReservation['discount_amount'] != null ? $payment->rideReservation['discount_amount']*2 : 0 }} | @endif {{--${{ $payment->rideReservation['driver_tip_amount'] != NULL ? $payment->rideReservation['driver_tip_amount'] : '0.00' }} | --}}${{ $payment['amount'] }}
@if($payment['label'])
@endif
|
@if(Auth::user()->can('View Payments'))
View
@endif
|