Edit File: user_complaints.blade.php
@extends('admin.layout.master') @section('content') <div class="position-relative"> {{-- table loader --}} {{-- table loader --}} {{-- table content --}} <table class="table " id="tab"> <thead> <tr> <th>{{__('admin.date')}}</th> <th>{{__('admin.name_to_complain')}}</th> <th>{{__('admin.complaining')}}</th> <th>{{__('admin.phone_to_complain')}}</th> <th>{{__('admin.email_to_complain')}}</th> <th>{{__('admin.control')}}</th> </tr> </thead> <tbody> @foreach($complaints as $complaint) <tr class="delete_complaint"> <td>{{\Carbon\Carbon::parse($complaint->created_at)->format('d/m/Y')}}</td> <td>{{$complaint->user_name}}</td> <td>{{$complaint->complaint}}</td> <td>{{$complaint->phone}}</td> <td>{{$complaint->email}}</td> <td class="product-action"> <span class="action-edit text-primary"><a href="{{route('admin.complaints.show' , ['id' => $complaint->id])}}"><i class="feather icon-eye"></i></a></span> {{-- <span class="delete-row text-danger" data-url="{{url('admin/complaints/'.$complaint->id)}}"><i class="feather icon-trash"></i></span> --}} </td> </tr> @endforeach </tbody> </table> {{-- table content --}} {{-- no data found div --}} @if ($complaints->count() == 0) <div class="d-flex flex-column w-100 align-center mt-4"> <img src="{{asset('admin/app-assets/images/pages/404.png')}}" alt=""> <span class="mt-2" style="font-family: cairo">{{__('admin.there_are_no_matches_matching')}}</span> </div> @endif {{-- no data found div --}} </div> {{-- pagination links div --}} @if ($complaints->count() > 0 && $complaints instanceof \Illuminate\Pagination\AbstractPaginator ) <div class="d-flex justify-content-center mt-3"> {{$complaints->links()}} </div> @endif {{-- pagination links div --}} @endsection
Back to File Manager