<table>
    <thead>
    <tr>
        <th>CustomerID</th>
        <th>Customer Name </th>
        <th>Customer Number</th>
        <th>Customer Email</th>
        <th>Customer Device Type</th>
        <th>Printer Use Case</th>
        <th>Printer Problem</th>
        <th>Agent Name</th>
        <th>Status</th>
        <th>Comment - Remarks</th>
        <th>Subscription Duration </th>
        <th>Amount </th>
        <th>Customer Address</th>
        <th>Payment Method</th>
        <th>Assigned User</th>
        <th>Remote ID</th>
        <th>ID</th>
        <th>Password</th>

    </tr>
    </thead>
    <tbody>
    @foreach($data as $order)

        <tr>
            <td>{{ ($order->customer_id??'') }}</td>
            <td>{{ $order->name??'' }}</td>
            <td>{{ $order->phone??'' }}</td>
            <td>{{ $order->email??'' }}</td>
            <td>{{ $order->customer_device??0 }}</td>
            <td>{{ $order->printer_use_case??0 }}</td>
            <td>{{ $order->printer_problem??'' }}</td>
            <td>{{ $order->agent->name??'' }}</td>
            <td>{{ $order->type_status??'' }}</td>
            <td>{{ $order->comments??'' }}</td>
            <td>{{ $order->subscription_duration??'' }}</td>
            <td>{{ $order->amount??'' }}</td>
            <td>{{ $order->address??'' }}</td>
            <td>{{ $order->payment_method??'' }}</td>
            <td>{{ $order->assigneduser->name??'admin' }}</td>
            <td>{{ $order->remote_id??'' }}</td>
            <td>{{ $order->loginId??'' }}</td>
            <td>{{ $order->password??'' }}</td>

        </tr>
    @endforeach

    </tbody>
</table>
