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

{{ translate('Currency') }}

@if (Session::get('tenant_subscribtion_data')['currency']['belongs_to_subscribtion'] == true && Session::get('tenant_controle_modules')['currency'] == 1)
@foreach ($currencies as $key => $Currency) @endforeach
# {{ translate('Name') }} {{ translate('Code') }} {{ translate('Symbol') }} {{ translate('Exchange rate') }} {{ translate('Active') }} {{ translate('Options') }}
{{ $key + 1 + ($currencies->currentPage() - 1) * $currencies->perPage() }} {{ $Currency->getTranslation('name') }} {{ $Currency->code }} {{ $Currency->getTranslation('symbol') }} {{ $Currency->exchange_rate }}
{{ $currencies->links() }}
@else

{{ translate('You need to upgrade to use this feature.') }}

{{ translate('Please Upgrade to use this feature.') }}


{{ translate('Upgrade now') }}
@endif

{{ translate('Add currency') }}

{!! Form::open(['method' => 'post', 'action' => 'Admin\CurrencyController@store', 'files' => true,'id' => 'add_currency_form']) !!}
{!! Form::text('name', null, ['class' => 'form-control', 'placeholder' => translate('Name')]) !!}
@error('name')
{{ $message }}
@enderror
{!! Form::text('symbol', null, ['class' => 'form-control', 'placeholder' => translate('Symbol')]) !!}
@error('symbol')
{{ $message }}
@enderror
{!! Form::text('code', null, ['class' => 'form-control', 'placeholder' => translate('Code')]) !!}
@error('code')
{{ $message }}
@enderror
{!! Form::text('exchange_rate', null, ['class' => 'form-control', 'placeholder' => translate('Exchange rate')]) !!}
@error('exchange_rate')
{{ $message }}
@enderror
{!! Form::checkbox('status', null, 1, ['id' => 'Checkbox_1']) !!}
{!! Form::Close() !!}
@if (Session::get('tenant_subscribtion_data')['currency']['belongs_to_subscribtion'] == true && Session::get('tenant_controle_modules')['currency'] == 1)
@endif
@endsection @section('script') @if (Session::get('tenant_subscribtion_data')['currency']['belongs_to_subscribtion'] == true && Session::get('tenant_controle_modules')['currency'] == 1) @else @endif @endsection