@if ($list_items)
@foreach ($list_items as $list_item)
@if(!$list_item->parent)
@endif
|
{{ $loop->iteration }} |
@if($list_item->thumbnail_url)

@else
@endif
@if($list_item->parent)
{{ $list_item->parent->breadcrumb}} >
@endif
{{ $list_item->indented_title ?? $list_item->title }}
{{ $list_item->slug }}
@if($list_item->description)
{{ Str::limit($list_item->description, 50) }}
@endif
|
@if($list_item->parent)
{{ $list_item->parent->title }}
@else
Root Program
@endif
|
@if ($list_item->status === 'active')
Active
@else
Inactive
@endif
|
Created by:
{{ $list_item->creator->name }}
{{ $list_item->created_at->format('d-m-Y, g:i A') }}
|
@include('admin.crud.action-dropdown', [
'cloneUrl' => url('admin/programs/'.$list_item->id.'/clone'),
'cloneTitle' => 'Clone Program',
'editUrl' => url('admin/programs/'.$list_item->id.'/edit'),
'editTitle' => 'Update Program',
'deleteUrl' => route('admin.programs.destroy', $list_item->id),
'redirectUrl' => route('admin.programs.index')
])
|
@endforeach
@endif