@if (!count($libraryViews))
| SEL | 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|
|---|---|---|---|---|---|---|---|---|---|---|
| {!! Form::checkbox("selected", "1", false, ['class' => 'form-control flight', "data-id" => $library->id ]) !!} | {{ $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 || $each->downloaded_at)
@if ($each->viewed_at) {{ date("Y-m-d H:i", strtotime($each->viewed_at)) }} @else {{ date("Y-m-d H:i", strtotime($each->downloaded_at)) }} @endif @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}"), "id" => "signDocumentForm"]) !!}
{!! 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