@lang('View Banners')
@can('delete', App\Banner::class) {{csrf_field()}}
@endcan
@lang('Advanced Search')
@can('delete', App\Banner::class) @endcan {{-- --}} @if((Auth::user()->can('update', App\Banner::class)) || (Auth::user()->can('delete', App\Banner::class))) @endif @if($banners) @foreach($banners as $banner) @can('delete', App\Banner::class) @endcan {{-- --}} @if((Auth::user()->can('update', App\Banner::class)) || (Auth::user()->can('delete', App\Banner::class))) @endif @endforeach @endif
@lang('ID') @lang('Image') @lang('Title') @lang('Position in Home Page') @lang('Category') @lang('Position in Category Page')@lang('Brand') @lang('Position in Brand Page')@lang('Status') @lang('Created')@lang('Action')
{{$loop->iteration}} @if($banner->photo) @php $image_url = \App\Helpers\Helper::check_image_avatar($banner->photo->name, 50); @endphp {{$banner->title}} @else {{$banner->title}} @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}} @can('update', App\Banner::class) @endcan   @can('delete', App\Banner::class) @endcan