Current File : //home/tradevaly/public_html/resources/views/backend/pages/topMenu/index.blade.php |
@extends('backend.ayaan.master')
@push('title') Top Menu @endpush
@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') Dashboards @endslot
@slot('title') Top Menu @endslot
@endcomponent
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="row mb-2">
<div class="col-sm-4"></div>
<div class="col-sm-8">
<div class="text-sm-end">
<a href="{{url('/b2b/top_menu/add')}}"
class="btn btn-success btn-rounded waves-effect waves-light mb-2 me-2"><i
class="mdi mdi-plus me-1"></i> Add New</a>
</div>
</div><!-- end col-->
</div>
<div class="table-responsive">
<table class="table" id="datatable-buttons">
<thead>
<tr>
<th class="text-center">#</th>
<th>{{translate("Title")}}</th>
<th>{{translate("Details")}}</th>
<th>{{translate("Link")}}</th>
<th class="text-right">{{translate("Actions")}}</th>
</tr>
</thead>
<tbody>
@php
$i = 0;
@endphp
@foreach ($datas as $data)
<tr>
<?php $i++; ?>
<td class="text-center">{{$i}}</td>
<td>{{$data['title']}}</td>
<td>{{$data['type']}}</td>
<td>{{$data['color']}}</td>
<td>
@if ($data['custom_url']=="")
Static
@else
{{$data['custom_url']}}
@endif
</td>
<td class="td-actions text-right">
<a href="{{url('b2b/top_menu/edit',$data->id)}}" class="btn btn-rose" title="Edit" style="color: #fff">
<i class="material-icons">edit</i>
</a>
<a href="{{url('b2b/top_menu/delete',$data->id)}}" name="data" 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>
<!-- 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',
serverSide: false,
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