@section('content')
| {{trans('admin.labels.title')}} | {{trans('admin.labels.discount')}} | @if (Sentry::getUser()->hasAccess('admin.discount.edit')){{trans('admin.labels.edit')}} | @else{{trans('admin.labels.show')}} | @endif @if (Sentry::getUser()->hasAccess('admin.discount.destroy')){{trans('admin.labels.delete')}} | @endif
|---|---|---|---|---|
| {{$discount['title']}} | {{$discount['discount']}} % | @if (Sentry::getUser()->hasAccess('admin.discount.edit')){{Button::normal(trans('admin.buttons.edit'))->asLinkTo(route('admin.discount.edit', [$discount['id']]))->extraSmall()->prependIcon(Icon::pencil())->withAttributes(['class' => 'edit'])}} | @else{{Button::normal(trans('admin.buttons.details'))->asLinkTo(route('admin.discount.show', [$discount['id']]))->extraSmall()->prependIcon(Icon::search())}} | @endif @if (Sentry::getUser()->hasAccess('admin.discount.destroy')){{Button::normal(trans('admin.buttons.delete'))->extraSmall()->prependIcon(Icon::trash())->withAttributes(['data-toggle' => 'modal', 'data-target' => '#confirmDelete', 'data-route' => route('admin.discount.destroy', [$discount['id']]), 'data-item' => $discount['title']])}} | @endif
| {{trans('admin.messages.empty-list-of-discounts')}} | ||||