@extends('layouts.admin-page-wide') @section('search-form',route('admin.attachments.index',['user'=>$user->id])) @section('pageTitle',__('site.attachments')) @section('page-title',__('site.attachments').': '.$user->name." ({$type})".(!empty(request('search')) ? ': '.request('search'):'')) @section('page-content')
@can('access','view_candidate_attachments') @endcan @can('access','create_candidate_attachment') @lang('site.add-new') @endcan

@foreach($attachments as $item) @endforeach
#@lang('site.name') @lang('site.type') @lang('site.added-on') @lang('site.author') @lang('site.actions')
{{ $loop->iteration + ( (Request::get('page',1)-1) * $perPage) }} {{ $item->name }} {{ pathinfo($item->path,PATHINFO_EXTENSION) }} {{ \Illuminate\Support\Carbon::parse($item->created_at)->format('d/M/Y') }} {{ $item->author }} @can('access','view_candidate_attachment') @if(isImage($item->path)) @endif @endcan @can('access','edit_candidate_attachment') @endcan @can('access','delete_candidate_attachment')
{{ method_field('DELETE') }} {{ csrf_field() }}
@endcan
{!! clean( $attachments->appends(['search' => Request::get('search')])->render() ) !!}
@endsection