@foreach($orders as $order)
<tr>
    <td>{{ $order->order_id }}</td>
    <td>{{ \Carbon\Carbon::parse($order->created_at)->format('F j, Y') }}</td>
    <td>{{ ucfirst($order->order_status ?? 'Pending') }}</td>
    <td>
        Rs. {{ number_format($order->mrp, 2) }}
        for {{ $order->qty }} {{ Str::plural('item', $order->qty) }}
    </td>
    <td>
        <a href="{{ route('order.details', $order->id) }}" class="btn btn-primary">VIEW</a>
    </td>
</tr>
@endforeach
