<x-layouts.app title="Orders">
    @php
        $tenant = auth()->user()->tenant;
        $ordersData = [
            'companyName' => $tenant->company_name,
            'ordersEndpoint' => url('/api/orders'),
            'contactsEndpoint' => url('/api/contacts'),
            'productsEndpoint' => url('/api/products'),
            'createEndpoint' => url('/api/orders'),
            'csrfToken' => csrf_token(),
        ];
    @endphp

    <div id="orders-app" data-orders='@json($ordersData)'></div>
</x-layouts.app>
