@if (!count($library)) @else

@lang("content.list")

{{-- --}} {{-- --}} {{-- --}} @foreach($library as $i => $each) @php $fileExists = airlineLibraryFileExists($each->airline_id, $each->attachment_file) @endphp @php $fileCorrupted = $each->attachment_file ? true : false @endphp {{-- --}} {{-- --}} {{-- --}} {{-- --}} @endforeach
No @lang("content.name") @lang("content.abbr") @lang("content.read_and_sign") @lang("content.folder") @lang("content.type") @lang("content.issue_date") @lang("content.effective_date") @lang("content.edition_no") @lang("content.uploaded") @lang("content.updated") @lang("content.attachment") @lang("content.actions")
Notified atLocationDepartmentPositionViews @lang("content.datetime") @lang("content.user") @lang("content.datetime") @lang("content.user")
{{ $i + 1 }} {{ $each->name }} {{ $each->abbr }} {{ $each->read_and_sign_notified_at }}{{ $each->toLocation ? getLocationAirport($each->toLocation) : "" }}{{ $each->toDepartment ? $each->toDepartment->name : "" }}{{ $each->toPosition ? $each->toPosition->name : "" }}id}" }}"> List {{ $each->folder ? $each->folder->name : "-" }}{{ $each->category }}{{ $each->type }} {{ $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("airline-library/file/{$each->id}")]) !!} {!! Form::file('file') !!} {!! Form::submit( trans("content.upload"), ['class' => 'btn btn-success margin-top-5', 'name' => 'upload']) !!} @if ($fileCorrupted) (Not found) @endif {!! Form::close() !!}
@endif
@if (!$each->deleted_at) @endif
@endif