Current File : //home/tradevaly/new.tradevaly.com.bd/resources/views/backend/pages/package/feature_list.blade.php |
@extends('backend.ayaan.master')
@section('title') Package @endsection
@section('css')
<!-- DataTables -->
<link href="{{ asset('/assets/libs/datatables/datatables.min.css') }}" rel="stylesheet" type="text/css" />
@endsection
@section('content')
@component('components.breadcrumb')
@slot('li_1') Dashboard @endslot
@slot('title') Featured @endslot
@endcomponent
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table class="table" id="datatable-buttons">
<thead>
<tr>
<th class="text-center">#</th>
<th>{{translate("Name")}}</th>
<th>{{translate("Status")}}</th>
<th class="text-right">{{translate("Actions")}}</th>
</tr>
</thead>
<tbody>
@foreach ($features as $feature)
<tr>
<td class="text-center">{{$loop->index + 1}}</td>
<td> {{$feature->name}}</td>
<td>
@if($feature->status == "disable")
<span class='btn btn-danger'>Disable</span>
@endif
@if($feature->status == "enable")
<span class='btn btn-success'>Enable</span></td>
@endif
<td class="td-actions text-right">
<a href="{{route('admin.package.feature_list.show',$feature->id)}}" name="package" class="btn btn-info" title="Edit" style="color: #fff">
<i class="fa fa-edit" aria-hidden="true"></i>
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!-- end row -->
@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',
buttons: ['copy', 'excel', 'pdf', 'colvis']
});
table.buttons().container().appendTo('#datatable-buttons_wrapper .col-md-6:eq(0)');
$(".dataTables_length select").addClass('form-select form-select-sm');
});
});
</script>
@endsection
{{-- @extends('backend.layouts.app')
@push('style')
@endpush
@section('content')
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th class="text-center">#</th>
<th>{{translate("Name")}}</th>
<th>{{translate("Status")}}</th>
<th class="text-right">{{translate("Actions")}}</th>
</tr>
</thead>
<tbody>
@foreach ($features as $feature)
<tr>
<td class="text-center">{{$loop->index + 1}}</td>
<td> {{$feature->name}}</td>
<td class="td-actions text-right">
<a href="{{route('admin.package.deletefeatured',$feature->id)}}" name="package" class="btn btn-danger confirmDelete" title="Delete" style="color: #fff">
<i class="material-icons">close</i>
</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
@stop
@push('script')
@endpush
--}}