Current File : //home/tradevaly/new.tradevaly.com.bd/resources/views/backend/pages/featureProduct/index.blade.php |
@extends('backend.ayaan.master')
@push('style')
<link href="https://www.tradevaly.com.bd/public//assets/libs/datatables/datatables.min.css" rel="stylesheet" type="text/css" />
@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">{{translate("Features Table")}}</h4>
</div>
<div class="card-body">
<div class="table-responsive">
<table id="datatable-buttons" class="table table-bordered dt-responsive nowrap w-100">
<thead>
<tr>
<th>{{translate("SN")}}</th>
<th>{{translate("Product Name")}}</th>
<th>{{translate("Short Description")}}</th>
<th>{{translate("Client")}}</th>
<th>{{translate("Supplier Package")}}</th>
<th class="text-right">{{translate("Actions")}}</th>
</tr>
</thead>
<tbody>
@foreach ($products as $product)
@if($product->product)
<tr>
<td class="text-center">{{$loop->iteration}}</td>
<td><img style="width:50px; border-radius:10%;" src="{{asset('storage/images/admin/product/'.($product->product->image ? $product->product->image:''))}}" alt=""></td>
<td>@isset($product->product->title) {{$product->product->title}} @endif</td>
<td>
{{$product->product->category->name? $product->product->category->name:""}}
</td>
<td>
@if($product->status == 0)
<span class="badge bg-warning">Pending</span>
@elseif($product->status == 1)
<span class="badge bg-success">Approved</span>
@else
<span class="badge bg-danger">Rejeceted</span>
@endif
</td>
<td class="td-actions text-right">
@if($product->status == 0)
<a href="{{url('b2b/feature_product/requestdelete',$product->id)}}" name="about" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">
Delete
</a>
@elseif($product->status == 1)
<a href="{{url('b2b/feature_product/delete',$product->id) }}" name="about" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">
Delete
</a>
@endif
</td>
</tr>
@endif
@endforeach
</tbody>
</table>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
@endsection
@section('script')
<!-- Required datatable js -->
<script src="{{ asset('/assets/libs/datatables/datatables.min.js') }}"></script>
<script src="{{ asset('/assets/libs/jszip/jszip.min.js') }}"></script>
<script src="{{ asset('/assets/libs/pdfmake/pdfmake.min.js') }}"></script>
<!-- Datatable init js -->
<script type="text/javascript">
$(function () {
$(document).ready(function () {
var table = $('#datatable-buttons').DataTable({
lengthChange: false,
processing: true,
dom: 'Bfrtip',
serverSide: false,
buttons: ['copy', 'excel', 'pdf', 'colvis']
});
});
});
</script>
@endsection