@if ($library && count($library))

{{ $title }}

@php $isAnyAdmin = isAnyAdmin(); @endphp @if (isset($locationCounter) && $isAnyAdmin) @endif {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} @foreach($library as $i => $each) @php $fileExists = libraryFileExists($each->attachment_file) @endphp @php $fileCorrupted = $each->attachment_file ? true : false @endphp @if (isset($locationCounter) && $isAnyAdmin) @endif @endforeach
SEL No @lang("content.name") @lang("content.abbr")@lang("content.location")@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")
{!! Form::checkbox("selected", "1", false, ['class' => 'form-control flight', "data-id" => $each->id ]) !!} {{ $i + 1 }} {{ $each->name }} {{ $each->abbr }}{{ getLocationsStr($each, $locationCounter) }}{{ $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