@if ($list_items) @foreach ($list_items as $list_item) {{ $loop->iteration }} @if($list_item->image) {{ $list_item->title }} @else No Image @endif
{{ $list_item->title }}
@if($list_item->description) {{ Str::limit($list_item->description, 50) }} @endif {{ ucfirst($list_item->action_type) }} @if($list_item->action_type === 'course' && $list_item->course)
{{ $list_item->course->title }} @elseif($list_item->action_value)
{{ Str::limit($list_item->action_value, 30) }} @endif @if ($list_item->status) Active @else Inactive @endif {{ $list_item->updated_at->format('d-m-Y, g:i A') }} @include('admin.crud.action-dropdown', [ 'cloneUrl' => url('admin/banners/'.$list_item->id.'/clone'), 'cloneTitle' => 'Clone Banner', 'editUrl' => url('admin/banners/'.$list_item->id.'/edit'), 'editTitle' => 'Update Banner', 'deleteUrl' => route('admin.banners.destroy', $list_item->id), 'redirectUrl' => route('admin.banners.index') ]) @endforeach @endif