id}") }}" class="btn btn-primary">@lang("content.add")
@if (isset($departmentsLibrary[$department->id]) && count($departmentsLibrary[$department->id]))

@lang("content.list")

@foreach($departmentsLibrary[$department->id] as $i => $each) @php $fileExists = $each->attachment_file ? true : false @endphp @endforeach
No @lang("content.name") @lang("content.abbr") @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")
@lang("content.datetime") @lang("content.user") @lang("content.datetime") @lang("content.user")
{{ $i + 1 }} {{ $each->name }} {{ $each->abbr }} {{ $each->type }} {{ $each->issue_date && $each->issue_date != EMPTY_DATE ? baseDateFormat($each->issue_date) : "" }} {{ $each->effective_date && $each->effective_date != EMPTY_DATE ? baseDateFormat($each->effective_date) : "" }} {{ $each->edition_no }} {{ baseDateFormat($each->created_at, true) }} {{ getUserName($each->createdBy) }} {{ $each->updated_at && $each->issue_date != EMPTY_DATETIME ? baseDateFormat($each->updated_at, true) : "" }} {!! $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("library/file/{$each->id}")]) !!} {!! Form::file('file') !!}
{!! Form::submit( trans("content.upload"), ['class' => 'btn btn-success', 'name' => 'upload']) !!} {!! Form::close() !!}
@endif
@if (!$each->deleted_at) @endif
@else @endif