@extends('layouts.admin') @section('style') @endsection @section('content')

@php $user = \App\Models\User::whereId(request('user_id'))->first(); @endphp @if ($user) {{ __("messages.Customer") }} : {{ $user->name }} @endif

@if (!$data->count())
{{ __("messages.There are no data") }} :(
@else
@php $i = 1; $skipCount = $data->perPage() * $data->currentPage() - $data->perPage(); @endphp @foreach ($data as $item) @php $i++ @endphp @endforeach
# {{ __('messages.Name') }} {{ __('messages.Category') }} {{ __('messages.File') }} {{ __('messages.Actions') }}
{{ $skipCount + $i }} {{ $item->user->name }} {{ $item->category->name }} @if ($item->file) @if (in_array(App\Http\Helper\HelperApp::get_extension_file($item->file) , ["png" , "jpg" , "jpeg"]))
@else @endif @else {{ __("messages.There are no files attached") }} @endif
{{ $data->appends(Request::except(['_token']))->links()}}
@endif
@include('admin.inc.modal-action') @endsection @section('script') @endsection