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

{{ translate('Fawry chat') }}

@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', 'Fawry_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', 'Fawry_purchase_date')->first()->value != null) || ($addon_manager['payment_type'] == 'per_month' && $data_difference >= 0) || $addon_manager['price'] == 0)
{{ translate('Fawry payment integration data') }}
{!! Form::open(['method' => 'post', 'action' => 'Admin\Addons\FawryController@updateFawryConf', 'files' => true, 'class' => 'form_to_submit']) !!}
{!! Form::checkbox('Fawry_active', null, $newaddons['Fawry_active'], ['id' => 'Checkbox_1']) !!}
{!! Form::text('Fawry_merchantcode', $newaddons['Fawry_merchantcode'], ['class' => 'form-control', 'placeholder' => translate('Merchant code')]) !!}
{!! Form::text('Fawry_signature', $newaddons['Fawry_signature'], ['class' => 'form-control', 'placeholder' => translate('Signature')]) !!}
{!! 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