@if(isset($licenses) && count($licenses)>0)

{{__('general.filter.paginate')}} {{$licenses->firstItem()}} - {{$licenses->lastItem()}} /{{$counter}}

@endif {!! renderTableHeadingHtml(__('license.index.column')) !!} @if(isset($licenses) && count($licenses)) @php $langCode = app()->getLocale(); @endphp @foreach($licenses as $index => $license) @php $typeLang = $license->type_term?->languages->firstWhere('canonical', $langCode); $statusLang = $license->status_term?->languages->firstWhere('canonical', $langCode); $status = $license->status_term; $color = ''; @endphp @endforeach @endif
{{ ($index + $licenses->firstItem()) }} {{$license->user->name}} {{$typeLang?->pivot->name}} {{\Carbon\Carbon::parse($license->start_date)->format('d/m/Y')}} @if($license->end_date) - {{\Carbon\Carbon::parse($license->end_date)->format('d/m/Y')}} @endif @if($status && $status->color) @php $exp = explode('|', $status->color); $color = isset($exp[1]) ? strtolower($exp[1]) : 'default'; @endphp @else {{$statusLang?->pivot->name}} @endif
@if (isset($licenses))
{{ $licenses->links('pagination::bootstrap-4') }}
@endif