@extends('driver::layout.layout') @section('title',"Driver |" . __('driver::home.docs')) @section('content') @push('css') @endpush
API Collection

GET Get All Orders.

Authorization Bearer Token

Example

Request
curl --location --globoff '{{ url('/') }}/api/v1/order/all' \
--header 'accept: "application/json"' \
--header 'Accept-Language: "en"'
Response
                                                                                        
{
    "data": [
        {
            "id": 2,
            "status": "on_way",
            "driver": {
                "id": 1,
                "name": "muhammad salah",
                "logo": "/storage/image.png",
                "address": "LA , 22 BAKER STREET",
            },
            "code": "7219HK1",
            "payment_method": "Cash",
            "payment_status": "paid",
            "address": "LA , 22 BAKER STREET",
            "date": "27 jul, 2023",
            "timing": "27 jul, 2023",
            "time": {
                "form": "22:10 pm",
                "to": "23:10 pm",
            },
            "services": [

            ],
            "payment_summary": {
                "amount": "1101.21",
                "vat": "28.12",
                "wallet_balance": "19213.123",
                "total": "1130.123",
            },
        },

    ]
}
                                                                                        
                                                                                    
JUMP TO
@push('js') @endpush @endsection