@extends('admin.layout') @section('content')

{{ translate('Aramex configration') }}

@php $today_date = \Carbon\Carbon::now(); $expire_date = \Carbon\Carbon::createFromFormat('Y-m-d', date('Y-m-d', strtotime('+30 day', strtotime(\App\Addon::where('type', 'Aramex_purchase_date')->first()->value)))); $data_difference = $today_date->diffInDays($expire_date, false); //false param @endphp
@if (($addon_manager['payment_type'] == 'one_time' && \App\Addon::where('type', 'Aramex_purchase_date')->first()->value != null) || ($addon_manager['payment_type'] == 'per_month' && $data_difference >= 0) || $addon_manager['price'] == 0)
{{ translate('Aramex integration data') }}
{!! Form::open(['method' => 'post', 'action' => 'Admin\Addons\AramexController@updateAramexConf', 'files' => true, 'id' => 'update_aramex_conf_form']) !!}
{!! Form::checkbox('Aramex_active', null, $newaddons['Aramex_active'], ['id' => 'Checkbox_1']) !!}
{!! Form::text('Aramex_AccountCountryCode', $newaddons['Aramex_AccountCountryCode'], ['id' => 'Aramex_AccountCountryCode', 'class' => 'form-control', 'placeholder' => translate('Account Country Code')]) !!}
{!! Form::text('Aramex_AccountEntity', $newaddons['Aramex_AccountEntity'], ['id' => 'Aramex_AccountEntity', 'class' => 'form-control', 'placeholder' => translate('Account Entity')]) !!}
{!! Form::text('Aramex_AccountNumber', $newaddons['Aramex_AccountNumber'], ['id' => 'Aramex_AccountNumber', 'class' => 'form-control', 'placeholder' => translate('Account Number')]) !!}
{!! Form::text('Aramex_AccountPin', $newaddons['Aramex_AccountPin'], ['id' => 'Aramex_AccountPin', 'class' => 'form-control', 'placeholder' => translate('Account Pin')]) !!}
{!! Form::text('Aramex_UserName', $newaddons['Aramex_UserName'], ['id' => 'Aramex_UserName', 'class' => 'form-control', 'placeholder' => translate('UserName')]) !!}
{!! Form::text('Aramex_Password', $newaddons['Aramex_Password'], ['id' => 'Aramex_Password', 'class' => 'form-control', 'placeholder' => translate('Password')]) !!}
{!! Form::Close() !!}
@else

{{ translate('You dont purchase this item or require to renew this item subscribtion') }}

{{ translate('Add to cart') }}

@endif
@endsection @section('script') @endsection