Current File : //home/tradevaly/text.tradevaly.com.bd/resources/views/user/pages/offers.blade.php
@extends('user.ayaan.master')

@push('style')
    
@endpush

@section('content')
<div class="container-fluid">
  <div class="row">
    <div class="col-md-12">
      <div class="card">
        <div class="card-header card-header-info card-header-icon">
          <h4 class="card-title">Offer Table</h4>
          <a class="btn btn-primary float-right" href="{{url('user/offer/add')}}">ADD NEW</a>
        </div>
        <div class="card-body">
          <div class="table-responsive">
            <table class="table">
              <thead>
                <tr>
                  <th class="text-center">#</th>
                  <th>Title</th>
                  <th>Category</th>
                  <th class="text-right">Actions</th>
                </tr>
              </thead>
              <tbody>
                @php
                   $i = 0;
                @endphp
                @foreach ($offers as $product)
                <tr>
                  <?php $i++; ?>
                  <td class="text-center">{{$i}}</td>
                  <td>{{$product->title}}</td>
                  <td>
                  {{$product->category->name}}
                  </td>
                  <td class="td-actions text-right">
                   
                    <a href="{{url('user/offer/edit',$product->id)}}"  class="btn btn-warning" title="Edit" style="color: #fff">Edit
                    </a>
                    <a href="{{url('user/offer/delete',$product->id)}}" name="category" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">Delete
                    </a>
                  </td>
                </tr>
                @endforeach
              </tbody>
            </table>
          </div>
        </div>
      </div>
  </div>
</div>
@stop

@push('script')
   
@endpush