@if (!count($library)) @else
@php $list = isset($title) ? $title : trans("content.list") @endphp

{{ $list }}

{{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @foreach($library as $i => $each) @php $fileExists = libraryFileExists($each->attachment_file) @endphp @php $fileCorrupted = $each->attachment_file ? true : false @endphp @endforeach
No @lang("content.name") @lang("content.abbr") @lang("content.folder")@lang("content.category")@lang("content.type") @lang("content.read_and_sign") @lang("content.issue_date") @lang("content.effective_date") @lang("content.edition_no")@lang("content.read_and_sign")@lang("content.uploaded") @lang("content.updated") @lang("content.attachment") @lang("content.actions")
Notified atLocationDepartmentPosition@lang("content.datetime") @lang("content.user") @lang("content.datetime") @lang("content.user")
{{ $i + 1 }} {{ $each->name }} {{ $each->abbr }} {{ $each->folder ? $each->folder->name : ""}} {{ $each->type }} {!! $each->read_and_sign ? '' : "" !!} {{ $each->issue_date && $each->issue_date != EMPTY_DATE ? date("Y-m-d", strtotime($each->issue_date)) : "" }} {{ $each->effective_date && $each->effective_date != EMPTY_DATE ? date("Y-m-d", strtotime($each->effective_date)) : "" }} {{ $each->edition_no }} {{ date("Y-m-d", strtotime($each->created_at)) }} {{ getUserName($each->createdBy) }} {{ $each->updated_at && $each->issue_date != EMPTY_DATETIME ? date("Y-m-d", strtotime($each->updated_at)) : "" }} {!! $each->deleted_at ? ''.trans("content.removed").'' : "" !!} {{ getUserName($each->updatedBy) }} @if ($fileExists) @elseif (!$each->deleted_at)
{!! Form::open(['files' => true, 'method' => 'POST', "class" => "library-forms", 'url' => url("library/file/{$each->id}")]) !!} {!! Form::file('file') !!}
{!! Form::submit( trans("content.upload"), ['class' => 'btn btn-success', 'name' => 'upload']) !!} @if ($fileCorrupted) (Not found) @endif {!! Form::close() !!}
@endif
@if (!$each->deleted_at) @endif
@endif