{{-- Tempel di resources/views/pages/orders/show.blade.php bagian Aksi --}}
@if(($order->isPaid() || $order->is_credit) && auth()->check())
    <a href="{{ route('delivery-notes.create', ['order_id' => $order->id]) }}"
       class="flex w-full items-center justify-center gap-2 rounded-lg border border-indigo-300 bg-indigo-50 px-4 py-2.5 text-sm font-medium text-indigo-700 hover:bg-indigo-100 dark:border-indigo-500/30 dark:bg-indigo-500/10 dark:text-indigo-300 dark:hover:bg-indigo-500/20">
        Buat Surat Jalan
    </a>
@endif
