@if (!count($libraryViews))
| No | @lang("content.name") | @lang("content.airline") | @lang("content.created") | @lang("content.last_viewed") | @if ($user->id == $authUser->id)@lang("content.actions") | @lang("content.viewed_and_signed") | @else | @lang("content.viewed_and_signed") | @endif|
|---|---|---|---|---|---|---|---|---|---|
| {{ $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
|
@if ($user->id == $authUser->id)
@if ($library->attachment_file)
@else | Attachment document has not been uploaded yet. | @endif
@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}")]) !!}
{!! Form::submit("Confirm", ["class" => "btn btn-success", "disabled"] ) !!}
{!! Form::close() !!}
@endif
@endif
|
@else
@if ($each->signed_at)
{{ date("Y-m-d H:i", strtotime($each->signed_at)) }} @else
@endif
|
@endif