@if (!count($libraryViews))
You currently have no new notifications
@else @php $authUser = auth()->user() @endphp @php $user = isset($user) ? $user : $authUser @endphp

@lang("content.read_and_sign")

@if ($user->id == $authUser->id) @else @endif @foreach($libraryViews as $i => $each) @if ($each->airlineLibrary) @php $column = "airline-library" @endphp @php $library = $each->airlineLibrary @endphp @else @php $column = "library" @endphp @php $library = $each->library @endphp @endif @if (!$library || $library->deleted_at) @continue @endif signed_at ? "unsigned" : "") }}"> @if ($user->id == $authUser->id) @if ($library->attachment_file) @else @endif @else @endif @endforeach
No @lang("content.name") @lang("content.airline") @lang("content.created") @lang("content.last_viewed")@lang("content.actions") @lang("content.viewed_and_signed") @lang("content.viewed_and_signed")
{{ $i + 1 }} id}") }}?view=1" class="view_btn"> {{ $library->name }} {{ $library->airline ? $library->airline->airline : "" }} {{ $each->created_at ? date("Y-m-d H:i", strtotime($each->created_at)) : "" }} @if ($each->viewed_at)

{{ date("Y-m-d H:i", strtotime($each->viewed_at)) }}

@else
@endif
Attachment document has not been uploaded yet. @if ($each->signed_at)

{{ date("Y-m-d H:i", strtotime($each->signed_at)) }}

@else
@endif
@if ($library->attachment_file) @if ($each->signed_at)

You have read and signed the document.

@else @php $viewed = $each->viewed_at || $each->downloaded_at @endphp @php $disabled = !$viewed ? "disabled" : "" @endphp @if (!$viewed)

Please view or download the document and then sign it.

@endif
{!! Form::open(["url" => url("library-view/save/{$each->id}"), "id" => "signDocumentForm"]) !!} {!! Form::submit("Confirm", ["class" => "btn btn-success", "disabled"] ) !!} {!! Form::close() !!}
@endif @endif
@if ($each->signed_at)

{{ date("Y-m-d H:i", strtotime($each->signed_at)) }}

@else
@endif
@endif