@extends('master') @php $breadcrumbs = Breadcrumbs::generate('paymentSettings'); @endphp @section('breadcrumbs') @if (count($breadcrumbs))
    @foreach ($breadcrumbs as $breadcrumb) @if ($breadcrumb->url && !$loop->last)
  1. {{{ $breadcrumb->title }}}
  2. @else
  3. {{{ $breadcrumb->title }}}
  4. @endif @endforeach
@endif @endsection @section('content')
@include('includes.side-menu')
@if (Session::has('success'))
@elseif (Session::has('error'))
@elseif ($errors->any())
@foreach ($errors->all() as $error) @endforeach
@endif

{{ trans('Product Payment Mode') }}

{!! Form::open(['url' => '/dashboard/superadmin/site-management/payment/store-product-type', 'class' => 'sj-formtheme sj-formarticle sj-formsocical', 'enctype' => 'multipart/form-data', 'multiple' => true]) !!}
@foreach ($product_mode as $key => $mode)
{{ Form::radio('payment_mode[]', $key, ($existing_product_mode === $key) ? true : false, array('id' => $key))}} {{ Form::label($key, ucfirst($mode)) }}
@endforeach
{!! Form::submit(trans('Save'), ['class' => 'sj-btn sj-btnactive']) !!}
{!! Form::close() !!}
@if (!empty($existing_product_mode) && $existing_product_mode == "individual-product")

{{{trans('Payment Settings')}}}

{!! Form::open(['url' => '/dashboard/superadmin/site-management/payment/store-payment-settings', 'class' => 'sj-formtheme sj-formsocical']) !!} @php $existing_payment_settings_client = ''; $client_id = ''; $currency_from_db = array(); $vat = ''; $payment_type = ''; $existing_payment_password = ''; $existing_payment_secret = ''; if (!empty($existing_payment_settings)) { $client_id = $existing_payment_settings[0]['client_id']; $currency_from_db = $existing_payment_settings[0]['currency']; $vat = $existing_payment_settings[0]['vat']; $payment_type = $existing_payment_settings[0]['payment_type']; $payment_password = $existing_payment_settings[0]['paypal_password']; $existing_payment_secret = $existing_payment_settings[0]['paypal_secret']; } @endphp
{!! Form::text('client_id', e($client_id), ['class' => 'form-control', 'placeholder' => trans('Paypal Id')]) !!}
{{{Form::input('password', 'paypal_password', e($payment_password),['class' => 'form-control', 'placeholder' => trans('Paypal Password')])}}}
{{{Form::input('password', 'paypal_secret', e($existing_payment_secret),['class' => 'form-control', 'placeholder' => trans('Paypal Secret')])}}}
{!! Form::text('vat', $vat, ['class' => 'form-control', 'placeholder' => trans('Vat')]) !!}
{!! Form::submit(trans('Save'), ['class' => 'sj-btn sj-btnactive']) !!}
{!! Form::close() !!}
@endif
@endsection