@php $layout = (isSeller() > 0) ? 'layouts.seller' : 'layouts.admin'; @endphp @extends($layout) @section('css') @endsection @section('content')
{{ $data->id ? __('tax.edit') : __('tax.add') }}
@php $routeDashboard = (isAdmin() > 0) ? 'admin.dashboard' : 'seller.dashboard'; @endphp
{{ __('common.home')}}
@php $route = (isAdmin() > 0) ? 'admin.tax.index' : 'tax.index'; @endphp
{{ __('tax.title') }}
{{ $data->id ? __('tax.edit') : __('tax.add') }}
{{ Form::open(array('route' => $routes, 'method' => 'POST' ,'id' => 'ajaxSave','files' => true))}}
{{Form::label('name', __('tax.name'), array('class' => 'control-label'))}} {{ Form::text('name', $data->name,array('placeholder' => __('tax.name'),'class' => 'form-control'))}}
{{Form::label('rate', __('tax.tax-perc'), array('class' => 'control-label'))}} {{ Form::number('rate', $data->rate,array('placeholder' => __('tax.rate'),'class' => 'form-control'))}}
{{ Form::label('account', __('tax.vat_code'), ['class' => 'control-label']) }} {{ Form::text('account', $data->account_no, ['placeholder' => __('tax.vat_code'), 'class' => 'form-control select2']) }}
{{ Form::label('description', __('tax.description'), ['class' => 'control-label']) }} {{ Form::textarea('description', $data->description, ['class' => 'form-control', 'size' => '2x3']) }}
{{ Form::submit( __('common.save'), array('class' => 'btn btn-primary width80'));}}
{{--
{{ Form::reset( __('common.cancel'), array('class' => 'btn btn-default width80'));}}
--}}
@if($data->id) @method('PUT') @endif {{ Form::close()}}
@endsection