@extends('Layouts/dashboard') @section('submenu') @if (isset($company) && $company) @include( 'Plugins/Payment/Views/Elements/Order/company_list_submenu', [ 'extra' => view( 'Plugins/Payment/Views/Elements/Coupon/add_submenu', ['company' => $company] ) ] ) @else @include( 'Plugins/Payment/Views/Elements/Order/list_submenu', [ 'extra' => view( 'Plugins/Payment/Views/Elements/Coupon/add_submenu', ['venue' => isset($venue) ? $venue : null] ) ] ) @endif {{-- @include('Elements/Venue/submenu') --}} @endsection @section('content') @foreach ($data as $row) @endforeach
{!! pagination_sort('name', t('Name')) !!} {{ __('Code') }} {{ __('Discount') }} {{ __('Limits') }} {{ __('Valid') }} {!! pagination_sort('created', t('Created')) !!}
{{ $row->name }} {{ $row->code }} @if($row->type == 'percentage') {{ __('%s%%', $row->discount) }} @endif @if ($row->type == 'qty') {{ __('buy %s get %s free', [$row->discount_buy, $row->discount_free]) }} @endif @if ($row->type == 'fixed') {{ __('£%s', $row->discount) }} @endif @if ($row->type == 'fixed-person') {{ __('£%s/pp', $row->discount) }} @endif {{ __('%s (%s)', [$row->total, $row->total_per_user]) }} @if ($row->start && $row->end) @date($row->start) - @date($row->end) @else @if ($row->start || $row->end) @if ($row->start) {{ __('From ') }} @date($row->start) @endif @if ($row->end) {{ __('until ') }} @date($row->end) @endif @else {{ __('endless') }} @endif @endif @datetime($row->created)
{!! pagination(['total' => $pagination_total]) !!}
@endsection