@extends('Layouts/dashboard') @section('submenu') @if (isset($company) && $company) @include( 'Plugins/Payment/Views/Elements/Order/company_list_submenu', [ 'extra' => view( 'Plugins/Payment/Views/Elements/CouponCode/add_submenu', [ 'company' => $company, 'coupon' => $coupon ] ) ] ) @else @include( 'Plugins/Payment/Views/Elements/Order/list_submenu', [ 'extra' => view( 'Plugins/Payment/Views/Elements/CouponCode/add_submenu', [ 'venue' => isset($venue) ? $venue : null, 'coupon' => $coupon ] ) ] ) @endif {{-- @include('Elements/Venue/submenu') --}} @endsection @section('content')

{{ __('Coupon Codes for') }} {{ $coupon->name }}

@foreach ($data as $row) @endforeach
{!! pagination_sort('code', t('Code')) !!} {{ __('Order') }} {!! pagination_sort('activated', t('Used on')) !!} {!! pagination_sort('created', t('Created')) !!}
{{ $coupon->code }}{{ $row->code }} @if ($row->order_id) {{ __('View Order') }} @endif @datetime($row->activated) @datetime($row->created)
{!! pagination(['total' => $pagination_total]) !!}
@include( 'Elements/Common/modal', [ 'title' => t('Create Codes'), 'form' => [ 'action' => ( (isset($company) && $company) ? action( 'Payment/CouponCodesController@secure_add', [ $coupon->id, 'company' => $company->id ] ) : action( 'Payment/CouponCodesController@secure_add', [ $coupon->venue_id, $coupon->id ] ) ), 'method' => 'post', 'id' => 'modal-dialog' ], 'content' => view( 'Plugins/Payment/Views/Elements/CouponCode/modal_form' ), 'footer' => view( 'Plugins/Payment/Views/Elements/CouponCode/modal_footer' ) ] ) @endsection