@extends('admin.layouts.master') @section('content')

{{ trans('app.banners') }}

@can('create', \App\Models\Banner::class) {{ trans('app.add_banner') }} @endcan
@can('massDelete', \App\Models\Banner::class) @endcan @foreach ($banners as $banner) @can('massDelete', \App\Models\Banner::class) @endcan @endforeach
{{ trans('app.detail') }} {{ trans('app.banner_image') }} {{ trans('app.options') }} {{ trans('app.created_at') }}  
{!! $banner->title !!} @unless ($banner->group) {{ strtoupper(trans('app.draft')) }} @endunless
{!! $banner->description !!}
{{ trans('app.banner_image') }} {{ trans('app.group') . ': ' }} @if ($banner->group) {!! $banner->group->name !!} @else {!! trans('app.unspecified') !!} @endif
{{ trans('app.columns') . ': ' }}{!! $banner->columns !!}
{{ trans('app.order') . ': ' }}{!! $banner->order !!}
{{ trans('app.link_label') . ': ' }}{!! $banner->link_label !!}
{{ trans('app.link') . ': ' }}{!! $banner->link !!}
{{ $banner->created_at->toFormattedDateString() }} @can('update', $banner)   @endcan @can('delete', $banner) {!! Form::open(['route' => ['admin.appearance.banner.destroy', $banner->id], 'method' => 'delete', 'class' => 'data-form']) !!} {!! Form::button('', ['type' => 'submit', 'class' => 'confirm ajax-silent', 'title' => trans('app.trash'), 'data-toggle' => 'tooltip', 'data-placement' => 'top']) !!} {!! Form::close() !!} @endcan
@endsection