@if (count($library))

@lang("content.list")

@if (isset($showFolder)) @endif @php $j = 0 @endphp @foreach($library as $i => $each) @php $fileExists = airlineLibraryFileExists($each->airline_id, $each->attachment_file) @endphp @php $fileCorrupted = $each->attachment_file ? true : false @endphp @if (isset($showFolder)) @endif {{-- --}} @endforeach
No @lang("content.name") @lang("content.abbr")@lang("content.folder")@lang("content.read_and_sign") @lang("content.issue_date") @lang("content.effective_date") @lang("content.edition_no") @lang("content.uploaded") @lang("content.updated") @lang("content.attachment") @lang("content.actions")
@lang("content.datetime") @lang("content.user") @lang("content.datetime") @lang("content.user")
{{ ++$j }} {{ $each->name }} {{ $each->abbr }}{{ $each->folder ? $each->folder->name : "" }}{{ $each->category }}{!! $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("airline-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