2017-09-14 22:21:00 +03:00
|
|
|
@extends('layouts.admin')
|
|
|
|
|
|
|
|
@section('title', trans('general.title.edit', ['type' => trans_choice('general.tax_rates', 1)]))
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<!-- Default box -->
|
|
|
|
<div class="box box-success">
|
|
|
|
{!! Form::model($tax, [
|
|
|
|
'method' => 'PATCH',
|
|
|
|
'url' => ['settings/taxes', $tax->id],
|
|
|
|
'role' => 'form'
|
|
|
|
]) !!}
|
|
|
|
|
|
|
|
<div class="box-body">
|
|
|
|
{{ Form::textGroup('name', trans('general.name'), 'id-card-o') }}
|
|
|
|
|
|
|
|
{{ Form::textGroup('rate', trans('taxes.rate'), 'percent') }}
|
|
|
|
|
|
|
|
{{ Form::radioGroup('enabled', trans('general.enabled')) }}
|
|
|
|
</div>
|
|
|
|
<!-- /.box-body -->
|
|
|
|
|
|
|
|
@permission('update-settings-taxes')
|
|
|
|
<div class="box-footer">
|
|
|
|
{{ Form::saveButtons('settings/taxes') }}
|
|
|
|
</div>
|
|
|
|
<!-- /.box-footer -->
|
|
|
|
@endpermission
|
|
|
|
|
|
|
|
{!! Form::close() !!}
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
|
2017-11-13 21:55:15 +03:00
|
|
|
@push('scripts')
|
2017-09-14 22:21:00 +03:00
|
|
|
<script type="text/javascript">
|
|
|
|
var text_yes = '{{ trans('general.yes') }}';
|
|
|
|
var text_no = '{{ trans('general.no') }}';
|
|
|
|
</script>
|
2017-11-13 21:55:15 +03:00
|
|
|
@endpush
|