Viewing file: index.blade.php (13.14 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('layouts.admin') @section('page-title') {{__('Taxi Order')}} @endsection @push('script-page') <script> $(document).ready( function () { $('#taxi-order').DataTable({ serverside:true, responsive:true, "ordering": false }); } ); </script> @endpush @section('breadcrumb') <li class="breadcrumb-item"><a href="{{route('dashboard')}}">{{__('Dashboard')}}</a></li> <li class="breadcrumb-item">{{__('Taxi Order')}}</li> @endsection @section('action-btn') <div class="float-end">
<a href="{{route('taxi-order.create')}}" title="{{__('Create')}}" class="btn btn-sm btn-primary"> <i class="ti ti-plus"></i> </a>
</div> @endsection
@section('content')
<div class="row"> <div class="col-xl-12"> <div class="card p-2"> <div class="card-body table-border-style"> <div class="table-responsive "> <table id="taxi-order" class="table table-striped table-bordered dt-responsive nowrap"> <thead> <tr> <th>{{__('Customer Profile')}}</th> <th>{{__('Destination')}}</th> <th>{{__('Tripe Cost')}}</th> <th>{{__('Payment Details')}}</th> {{-- <th>{{__('Status')}}</th> --}} <th>{{__('Action')}}</th> </tr> </thead> <tbody> @if ($texiorders->isNotEmpty()) @foreach ($texiorders as $taxiOrder) <tr class="font-style"> <td> <div class="customer-profile-sec"> <div class="customer-name-sec"> <strong>{{__('Name')}} :</strong> {{isset($taxiOrder->name)?$taxiOrder->name:''}} </div> <div class="customer-phone-sec"> <strong>{{__('Phone')}} :</strong> {{isset($taxiOrder->phone_number)?$taxiOrder->phone_number:''}} </div> <div class="customer-email-sec"> <strong>{{__('Email')}} :</strong> {{isset($taxiOrder->email)?$taxiOrder->email:''}} </div> <div class="customer-email-sec"> <strong>{{__('Order Status')}} :</strong> @if (isset($taxiOrder->status) && $taxiOrder->status) @if($taxiOrder->status=='accepted') <span class="text-primary">{{"Accepted By ".$taxiOrder->driver->name}}</span> @elseif ($taxiOrder->status=='pushed') <span class="text-primary">{{__('Pushed To Nearest Driver')}}</span> @else <span class="badge badge-danger">{{ucfirst($taxiOrder->status)}}</span> @endif @endif </div> </div> </td> <td> <div class="destination-sec"> <div class="pick-up-address"> <strong>{{__('From')}} :</strong> {{isset($taxiOrder->pickup_address)?$taxiOrder->pickup_address:''}} </div> <div class="destination-address"> <strong>{{__('To')}} :</strong> {{isset($taxiOrder->destination_address)?$taxiOrder->destination_address:''}}
</div> <div class="destination-address"> <strong>{{__('Total Meterage')}} :</strong> {{isset($taxiOrder->total_km)?$taxiOrder->total_km:''}}
</div> <div class="destination-address"> <strong>{{__('Pickup Date')}} :</strong> {{isset($taxiOrder->pickup_date)?$taxiOrder->pickup_date:''}}
</div> </div> </td>
<td> <div class="d-block"> <strong>Meterage Charge:</strong> @if (isset($taxiOrder->kilometer_price) && $taxiOrder->kilometer_price) {{\Auth::user()->priceFormat($taxiOrder->kilometer_price)}} @else 00.00 @endif </div> <div class="d-block"> <strong>Total Cost:</strong> @if (isset($taxiOrder->total_cost) && $taxiOrder->total_cost) {{\Auth::user()->priceFormat($taxiOrder->total_cost)}} @else 00.00 @endif </div> </td> <td> <div class="driver-status-section">
<div class="payment-status"> <strong>{{__('Payment Status')}} : </strong>
@if ($taxiOrder->payment_type=='offline') <span> @if ($taxiOrder->payment_status=='paid') <span type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="text-primary">{{ucfirst($taxiOrder->payment_status)}}</span> @else <span type="button" id="dropdownMenuButton" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="text-danger">{{ucfirst($taxiOrder->payment_status)}}</span> @endif
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton"> @if ($taxiOrder->payment_status=='paid') <a class="dropdown-item" href="{{route('order.payment.status',[$taxiOrder->id,'status'=>'unpaid'])}}">Unpaid</a> @else <a class="dropdown-item" href="{{route('order.payment.status',[$taxiOrder->id,'status'=>'paid'])}}">Paid</a> @endif </div> </span> @else @if ($taxiOrder->payment_status=='paid') <span class="text-primary">{{ucfirst($taxiOrder->payment_status)}}</span> @else <span class="text-danger">{{ucfirst($taxiOrder->payment_status)}}</span> @endif @endif
</div> <div class="payment-method"> <strong>{{__('Payment Method')}} : </strong> @if ($taxiOrder->payment_type=='offline') <span class="text-primary">{{__('Zell/Cash')}}</span> @else <span class="text-danger">{{ucfirst($taxiOrder->payment_type)}}</span> @endif </div> </div> </td>
{{-- <td> <div class="driver-status-section"> @if (isset($taxiOrder->status) && $taxiOrder->status) @if($taxiOrder->status=='accepted') <span class="text-primary">{{"Accepted By ".$taxiOrder->driver->name}}</span> @elseif ($taxiOrder->status=='pushed') <span class="text-primary">{{__('Pushed To Nearest Driver')}}</span> @else <span class="badge badge-danger">{{ucfirst($taxiOrder->status)}}</span> @endif @endif </div> </td> --}} <td class="Action"> <div class="action-btn bg-info ms-2"> <a href="{{route('taxi-order.details',$taxiOrder->id) }}" class="mx-3 btn btn-sm align-items-center" title="{{__('Order Details')}}" > <i class="ti ti-list text-white"></i> </a> </div> <div class="action-btn bg-info ms-2"> <a href="{{route('taxi-order.edit',$taxiOrder->id) }}" class="mx-3 btn btn-sm align-items-center" data-bs-toggle="tooltip" title="{{__('Edit')}}" data-title="{{__('Edit Taxi Order')}}"> <i class="ti ti-pencil text-white"></i> </a> </div> @if($taxiOrder->status=='pending') <div class="action-btn bg-info ms-2"> <a href="#" class="mx-3 btn btn-sm align-items-center order-request-push-btn" data-id="{{$taxiOrder->id}}" data-href="{{route("push.order.request.taxi")}}" data-token="{{csrf_token()}}" data-bs-toggle="tooltip" title="{{__('Push')}}"> <i class="fa fa-paper-plane text-white" aria-hidden="true"></i> </a> </div> @else <div class="action-btn bg-info ms-2">
<a href="#" class="mx-3 btn btn-sm align-items-center disable" data-bs-toggle="tooltip" title="{{__('Pushed')}}"> <i class="fa fa-paper-plane text-white" aria-hidden="true"></i> </a>
</div> @endif
<div class="action-btn bg-danger ms-2"> {!! Form::open(['method' => 'DELETE', 'route' => ['taxi-order.destroy', $taxiOrder->id],'id'=>'delete-form-'.$taxiOrder->id]) !!} <a href="#" class="mx-3 btn btn-sm align-items-center bs-pass-para" data-bs-toggle="tooltip" title="{{__('Delete')}}" ><i class="ti ti-trash text-white"></i></a> {!! Form::close() !!} </div>
</td>
</tr> @endforeach
@endif </tbody> </table> </div>
</div> </div> </div> </div> @endsection @section('extra-scripts')
@endsection
|