Edit File: table.blade.php
<div class="position-relative"> {{-- table loader --}} <div class="table_loader"> {{ __('admin.loading') }} </div> {{-- table loader --}} {{-- table content --}} <table class="table " id="tab"> <thead> <tr> <th> # </th> <th>{{ __('admin.image') }}</th> <th>{{ __('admin.name') }}</th> @if ($level != 2) <th>{{ is_null(request('id')) ? __('admin.view_sub_sections') : __('admin.classifications') }}</th> @endif <th>{{ __('admin.status') }}</th> <th>{{ __('admin.control') }}</th> </tr> </thead> <tbody> @foreach ($categories as $category) <tr class="delete_row"> <td class="text-center"> {{ $loop->iteration }} </td> <td><img src="{{ $category->image }}" width="50px" height="50px" alt=""></td> <td>{{ $category->name }}</td> @if ($level != 2) <td><a href="{{ route('admin.categories.index', ['id' => $category->id]) }}">{{ __('admin.view') }}</a> </td> @endif <td> <span class="btn btn-sm round btn-outline-{{ $category->status ? 'success' : 'danger' }} change-status" data-id="{{ $category->id }}"> {{ $category->status ? __('admin.active') : __('admin.dis_activate') }}</span> </td> <td class="product-action"> <span class="text-primary"><a href="{{ route('admin.categories.show', ['id' => $category->id]) }}"><i class="feather icon-eye"></i></a></span> <span class="action-edit text-primary"><a href="{{ route('admin.categories.edit', ['id' => $category->id]) }}"><i class="feather icon-edit"></i></a></span> </td> </tr> @endforeach </tbody> </table> {{-- table content --}} {{-- no data found div --}} @if ($categories->count() == 0) <div class="d-flex flex-column w-100 align-center mt-4"> <img src="{{ asset('/storage/images/no_data.png') }}" width="200px" style="" alt=""> <span class="mt-2" style="font-family: cairo ;margin-right: 35px">{{ __('admin.there_are_no_matches_matching') }}</span> </div> @endif {{-- no data found div --}} </div> {{-- pagination links div --}} @if ($categories->count() > 0 && $categories instanceof \Illuminate\Pagination\AbstractPaginator) <div class="d-flex justify-content-center mt-3"> {{ $categories->links() }} </div> @endif {{-- pagination links div --}}
Back to File Manager