@extends('backEnd.master') @section('title') @lang('system_settings.manage_currency') @endsection @push('css') @endpush @section('mainContent')

@if(isset($editData)) @lang('system_settings.edit_currency') @else @lang('system_settings.add_currency') @endif

@if(isset($editData)) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'currency-update', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @else @if(userPermission('currency-store')) {{ Form::open(['class' => 'form-horizontal', 'files' => true, 'route' => 'currency-store', 'method' => 'POST', 'enctype' => 'multipart/form-data']) }} @endif @endif
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('code')) {{ $errors->first('code') }} @endif
@if ($errors->has('symbol')) {{ $errors->first('symbol') }} @endif
currency_type == 'C' ? 'checked':'':'' }}>
currency_type == 'S' ? 'checked':'':'checked' }}>
currency_position == 'S' ? 'checked':'':'checked' }}>
currency_position == 'P' ? 'checked':'':'' }}>
space ? 'checked':'':'checked' }}>
space ? 'checked':'':'' }}>
@if ($errors->has('decimal_digit')) {{ $errors->first('decimal_digit') }} @endif
@if ($errors->has('decimal_separator')) {{ $errors->first('decimal_separator') }} @endif
@if ($errors->has('thousand_separator')) {{ $errors->first('thousand_separator') }} @endif
@php $tooltip = ""; if(userPermission('currency-store')){ $tooltip = ""; }else{ $tooltip = "You have no permission to add"; } @endphp
{{ Form::close() }}
@endsection