@include('includes.admin_header')
<style>
    .w-100 {
    width: 80% !important;
}
</style>
<div class="d-flex" id="wrapper">
  <!-- Sidebar -->
  @include('includes.admin_sidebar')

    <!-- Main Content -->
  <div class="container-fluid py-4 px-4 order-s">
    <div class="d-flex justify-content-between align-items-center mb-4">
      <h2><i class="bi bi-receipt me-2"></i>Warranty Request List</h2>
      <!--<button class="btns btns-hover"><span><i class="bi bi-plus-circle me-1"></i> New Order</span></button>-->
    </div>

    <div class="table-responsive shadow-sm rounded bg-white p-3">
      <table class="table align-middle table-hover datatable">
        <thead class="table-light">
          <tr>
            <th>#</th>
            <th>Account Name</th>
            <th>Account Number</th>
            <th>Name</th>
            <th>Email</th>
            <th>Phone</th>
            <th>Product Type</th>
            <th>Claim Category</th>
            <th>Address</th>
            <th>Qty</th>
            <th>Item Number</th>
            <th>Manufacturer</th>
            <th>Invoice No</th>
            <th>Purchased Date</th>
            <th>reason</th>
            <th>Make</th>
            <th>Model</th>
            <th>Year</th>
            <th>Date</th>
          </tr>
        </thead>
        <tbody>
        @foreach($warrantydata as $key => $p)
        <tr>
        <td>{{ $key + 1 }}</td>
        <td>{{ $p->account_name }}</td>
        <td>{{ $p->account_no }}</td>
        <td>{{ $p->first_name." ".$p->last_name }}</td>
        <td>{{ $p->email }}</td>
        <td>{{ $p->phone }}</td>
        <td>{{ $p->product_type }}</td>
        <td>{{ $p->claim_category }}</td>
        <td>{{ $p->address }}</td>
        <td>{{ $p->qty }}</td>
        <td>{{ $p->item_number }}</td>
        <td>{{ $p->manufacturer }}</td>
        <td>{{ $p->invoice_no }}</td>
        <td>{{ $p->purchased_date }}</td>
        <td>{{ $p->reason }}</td>
        <td>{{ $p->make }}</td>
        <td>{{ $p->model }}</td>
        <td>{{ $p->year }}</td>
        <td>{{ $p->created_at }}</td>
        </tr>
      @endforeach
        </tbody>
      </table>
    </div>
  </div>
</div>
</div>

@include('includes.admin_footer')

