{{-- This view should be reusable in enterpise/voucher layouts. All script and layout styles should be nested within their components, Or to be compomentised to push once using stacks Custom styles are applied for each enterprise/voucher project. --}} @php $platform_layout = $is_gamification ? getAppLayout() : 'digital_voucher_generic'; @endphp @extends('layouts.'. $platform_layout , ['title' => str_replace('
', ' ', $voucher['voucher_series']['title']) ]) @section('style') @parent @endsection @section('script') @parent @include('components.enterprise_voucher.script-app-voucher') @endsection @section('menu') @parent @endsection @section('content') @if($is_gamification) @component('components.main.main_ui', ['page'=>'voucher_use']) @slot('nav') @endslot @slot('masthead') @endslot @component('components.enterprise_voucher.use_pool_voucher', ['voucher'=> $voucher, 'pool_vouchers'=> $pool_vouchers]) @endcomponent @slot('footer') @endslot @endcomponent @else @component('components.enterprise_voucher.use_pool_voucher', ['voucher'=> $voucher, 'pool_vouchers'=> $pool_vouchers]) @endcomponent @endif @endsection