Viewing file: index.blade.php (5.84 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('admin.layouts.app') @section('title') {{ __('wishlist') }} @endsection @section('content') <div class="container-fluid"> <div class="row"> <div class="col-md-12"> <div class="card"> <div class="card-header"> <h3 class="card-title" style="line-height: 36px;">{{ __('wishlist') }}</h3> </div> <div class="card-body"> <div id="example1_wrapper" class="dataTables_wrapper dt-bootstrap4"> <div class="row"> <div class="col-sm-12"> <table id="example1" class="table table-bordered table-striped dataTable dtr-inline" role="grid" aria-describedby="example1_info"> <thead> <tr role="row" class="text-center"> <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending"> {{ __('product_name') }}</th> <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" width="20%">{{ __('price') }}</th> <th class="sorting" tabindex="0" aria-controls="example1" rowspan="1" colspan="1" aria-label="CSS grade: activate to sort column ascending" width="10%">{{ __('action') }}</th> </tr> </thead> <tbody> {{-- @foreach ($wishlists as $wishlist) <tr role="row" class="odd"> <td class="sorting_1 text-center" tabindex="0"> {{ $wishlist->product->title }} </td> <td class="sorting_1 text-center" tabindex="0"> @if ($wishlist->product->sale_price) <strong>$</strong> {{ $wishlist->product->sale_price }} <del><strong>$</strong> {{ $wishlist->product->price }}</del> @else <strong>$</strong> {{ $wishlist->product->price }} @endif </td> <td class="sorting_1 text-center" tabindex="0"> <form action="{{ route('module.wishlist.destroy', $wishlist->id) }}" method="POST" class="d-inline"> @method('DELETE') @csrf <button data-toggle="tooltip" data-placement="top" title="Delete Wishlist" onclick="return confirm('{{ __('Are you sure want to delete this item?') }}');" class="btn bg-danger"><i class="fas fa-trash"></i></button> </form> </td> </tr> @endforeach --}} </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> @endsection
@section('style') <link rel="stylesheet" href="{{ asset('backend') }}/plugins/datatables-bs4/css/dataTables.bootstrap4.min.css"> <link rel="stylesheet" href="{{ asset('backend') }}/plugins/datatables-responsive/css/responsive.bootstrap4.min.css"> @endsection
@section('script') <script src="{{ asset('backend') }}/plugins/datatables/jquery.dataTables.min.js"></script> <script src="{{ asset('backend') }}/plugins/datatables-bs4/js/dataTables.bootstrap4.min.js"></script> <script src="{{ asset('backend') }}/plugins/datatables-responsive/js/dataTables.responsive.min.js"></script> <script src="{{ asset('backend') }}/plugins/datatables-responsive/js/responsive.bootstrap4.min.js"></script> <script> $(function() { $("#example1").DataTable({ "responsive": true, "autoWidth": false, }); $('#example2').DataTable({ "paging": true, "lengthChange": false, "searching": false, "ordering": true, "info": true, "autoWidth": false, "responsive": true, }); }); </script> @endsection
|