<x-layouts.app title="Order Detail">
    @php
        $orderData = [
            'orderId' => $order->id,
            'orderEndpoint' => url('/api/orders/'.$order->id),
            'statusEndpoint' => url('/api/orders/'.$order->id.'/status'),
            'paymentEndpoint' => url('/api/orders/'.$order->id.'/payment-status'),
            'paymentRequestsEndpoint' => url('/api/orders/'.$order->id.'/payment-requests'),
            'createPaymentRequestEndpoint' => url('/api/orders/'.$order->id.'/payment-requests'),
            'printUrl' => route('orders.print', $order),
            'pdfUrl' => route('orders.pdf', $order),
            'csrfToken' => csrf_token(),
        ];
    @endphp

    <div id="order-detail-app" data-order-detail='@json($orderData)'></div>
</x-layouts.app>
