@extends('front.v2.partials.master') @section('content')
@if (session('giftcard_order_message'))
{{ session('giftcard_order_message') }}
@endif
{!! Form::open(['route' => 'front.v2.purchase-gift-card','method' => 'POST' ,'id' => 'ajaxSubmit' ,'data-login'=> 1]) !!}
{!! Form::label('card_amount',__('v2/front_site.gift_card_amount'),['class' => '' ,'style' => 'font-size: 16px;font-weight: 600;']) !!}
{!! Form::number('card_amount','',['class' => 'form-control','placeholder' => __('v2/front_site.gift_card_amount') , 'required' => true]) !!}
{!! Form::label('delivery_type',__('v2/front_site.delivery'),['class' => '' ,'style' => 'font-size: 16px;font-weight: 600;']) !!}
@if(function_exists('giftCardDeliveryType')) @foreach(giftCardDeliveryType() as $key => $de)
{!! Form::radio('card_delivery_type',$key,$key == 1 ? 1 : 0,['class' => 'd-radio-'.$key ]) !!}

{!! ucfirst($de) !!}

@endforeach @endif
{!! Form::label('to_email',__('v2/front_site.to'),['class' => '']) !!}
{!! Form::text('to_email','',['class' => 'form-control','placeholder' => __('v2/front_site.to_text'), 'required' => true]) !!}
{!! Form::label('mesage',__('v2/front_site.message'),['class' => '']) !!}
{!! Form::textarea('message',__('v2/front_site.default_message_text'),['class' => 'form-control' ,'size' =>'23x3']) !!}
@if(isset($paymentMethodRes) && count($paymentMethodRes) > 0)
{!! Form::label('payment_method',__('v2/front_site.payment_method'),['class' => '' ,'style' => 'font-size: 16px;font-weight: 600;overflow-wrap: anywhere;']) !!}
@foreach($paymentMethodRes as $key => $de)
{!! Form::radio('payment_method',$de['slug'],$de['slug'] == 'adyen' ? 1 : 0,['class' => ' __select_pay_method d-radio-'.$de['slug'],'data-pay-method' => $de['slug']]) !!}
@if($de['slug'] == 'swish') @endif @endforeach
@endif
@if($showButton)
{!! Form::submit(__('v2/front_site.buy_gift_card'),['class' => 'btn','style' => '']) !!}
@endif
@endsection @section('script') @endsection