@include('admin/include/header')
<!-- Main Content -->
<div class="main-content">
    <section class="section">
      <div class="section-header">
        <h1>Variant</h1>
        <div class="section-header-breadcrumb">
          <div class="breadcrumb-item active"><a href="{{ url('admin/') }}">Dashboard</a></div>
          <div class="breadcrumb-item"><a href="javascript:void (0)">Variant</a></div>
          <div class="breadcrumb-item">Add Variant</div>
        </div>
      </div>

      <div class="section-body">
        <div class="row">
          <div class="col-12 col-md-12 col-lg-12">
            <div class="card">
                <div class="card-header">
                    <h4>Variant</h4>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-striped table-md">
                            <tr>
                                <th>#</th>
                                <th>Category</th>
                                <th>Variant</th>
                                <th>Action</th>
                            </tr>
                            @foreach($data as $key => $category)
                            <tr>
                                <td>{{ $key + 1 }}</td>
                                <td>{{ $category->title }}</td>
                                <td>{{ $category->variant }}</td>
                                <td><a class="btn btn-primary" href="{{ url('admin/edit_variant/'.$category->id) }}"> Edit </a></td>
                            </tr>
                            @endforeach
                            </table>
                    </div>
                </div>
            </div>
          </div>
        </div>
      </div>
    </section>
  </div>

@include('admin/include/footer')
