@section('content')
{{Breadcrumb::withLinks($breadcrumbs)}}
@if (Sentry::getUser()->hasAccess('admin.order-country.create')) {{Button::success(trans('admin.buttons.add-country'))->prependIcon(Icon::plus_sign())->asLinkTo(route('admin.order-country.create'))->withAttributes(['class' => 'pull-right'])}} @endif
{{Navigation::tabs($tabs)->withAttributes(['role' => 'tablist', 'class' => 'flags'])}}
@foreach($tabs as $tab)
@if (Sentry::getUser()->hasAccess('admin.order-country.edit')) @else @endif @if (Sentry::getUser()->hasAccess('admin.order-country.destroy')) @endif @forelse($order_countries[$tab['route']] as $order_country) @if (Sentry::getUser()->hasAccess('admin.order-country.edit')) @else @endif @if (Sentry::getUser()->hasAccess('admin.order-country.destroy')) @endif @empty @endforelse
{{trans('admin.labels.title')}}{{trans('admin.labels.edit')}}{{trans('admin.labels.show')}}{{trans('admin.labels.delete')}}
{{$order_country['title']}} {{Button::normal(trans('admin.buttons.edit'))->asLinkTo(route('admin.order-country.edit', [$order_country['id']]))->extraSmall()->prependIcon(Icon::pencil())->withAttributes(['class' => 'edit'])}} {{Button::normal(trans('admin.buttons.details'))->asLinkTo(route('admin.order-country.show', [$order_country['id']]))->extraSmall()->prependIcon(Icon::search())}} {{Button::normal(trans('admin.buttons.delete'))->extraSmall()->prependIcon(Icon::trash())->withAttributes(['data-toggle' => 'modal', 'data-target' => '#confirmDelete', 'data-route' => route('admin.order-country.destroy', [$order_country['id']]), 'data-item' => $order_country['title']])}}
{{trans('admin.messages.empty-list-of-countries')}}
@endforeach
@stop @section('modals') @stop @section('scripts') $('#confirmDelete').on('show.bs.modal', function (event) { var modal = $(this); var button = $(event.relatedTarget); var route = button.data('route'); var item = button.data('item'); modal.find('form').attr('action', route); modal.find('span.country').text(item); }); @stop