@can('delete', App\Banner::class)
|
@endcan
{{$loop->iteration}} |
@if($banner->photo)
@php
$image_url = \App\Helpers\Helper::check_image_avatar($banner->photo->name, 50);
@endphp
@else
@endif
|
{{$banner->title}} |
{{$banner->position}} |
{{$banner->category ? $banner->category->name . ' (' . __('ID:') . ' ' .$banner->category->id. ')' : '-'}} |
{{$banner->category ? $banner->position_category : '-'}} |
{{-- {{$banner->brand ? $banner->brand->name . ' (' . __('ID:') . ' ' .$banner->brand->id. ')' : '-'}} |
{{$banner->brand ? $banner->position_brand : '-'}} | --}}
{{$banner->is_active ? __('Active') : __('Inactive')}} |
{{$banner->created_at}} |
@if((Auth::user()->can('update', App\Banner::class)) || (Auth::user()->can('delete', App\Banner::class)))
@can('update', App\Banner::class)
@endcan
@can('delete', App\Banner::class)
@endcan
|
@endif
@endforeach
@endif