@php $acao = ((isset($MRANfProdutos) and !is_null($MRANfProdutos))?'edit':'add'); $isPublic = 0; $controller = get_class(\Request::route()->getController()); @endphp @extends($isPublic ? 'layouts.app-public' : 'layouts.app') @section('content') @section('style') @endsection

Nota Fiscal - Produtos

{{-- @if(!$isPublic) @endif --}}
{!! Form::open(['url' => "nota_fiscal/produtos/ts".($acao=='edit'?'/'.$MRANfProdutos->id:''), 'method' => ($acao=='edit'?'put':'post'), 'novalidate'=> true, 'enctype' => 'multipart/form-data', 'accept-charset' => 'utf-8', 'id' => ($acao=='edit'?'form_edit':'form_add').'_produtos']) !!}
@if($acao=='edit') {!! Form::hidden('id', $MRANfProdutos->id) !!} @if(\App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@destroy"))
@endif @endif
{!! Form::label('','Status') !!} {!! Form::select('status', \App\Http\Controllers\MRA\MRAListas::Get_options_status_ai([""]), ($acao=='edit'?$MRANfProdutos->status:null), ['class' => 'form-control select_single_no_trigger' , "id" => "input_status"]) !!}
{!! Form::label('','Nome') !!} * {!! Form::text('nome', ($acao=='edit'?$MRANfProdutos->nome:null), ['class' => 'form-control' , "id" => "input_nome", "maxlength"=>250]) !!}
{!! Form::label('','Valor') !!} *
R$
{!! Form::text('valor_venda', ($acao=='edit'?\App\Helper\Helper::H_Decimal_DB_ptBR($MRANfProdutos->valor_venda):null), ['class' => 'form-control money_v2', "placeholder" => "0,00", "id" => "input_valor"]) !!}
{!! Form::label('','Código do Produto') !!} * {!! Form::text('codigo', ($acao=='edit'?$MRANfProdutos->codigo:null), ['class' => 'form-control', "id" => "input_codigo", "maxlength"=>250]) !!}
{!! Form::label('','Código Fiscal / Logística') !!} {!! Form::text('codigo_fiscal', ($acao=='edit'?$MRANfProdutos->codigo_fiscal:null), ['class' => 'form-control', "id" => "input_codigo", "maxlength"=>250]) !!}
{!! Form::label('','Código de Barras') !!} {!! Form::text('codigo_barras', ($acao=='edit'?$MRANfProdutos->codigo_barras:null), ['class' => 'form-control', "id" => "input_codigo", "maxlength"=>250]) !!}
{!! Form::label('','Unidade de Medida') !!} {!! Form::text('unidade_medida', ($acao=='edit'?$MRANfProdutos->unidade_medida:null), ['class' => 'form-control', "id" => "input_unidade_medida", "maxlength"=>100]) !!}
{!! Form::label('','Descrição do Produto') !!} {!! Form::textarea('observacoes', ($acao=='edit'?$MRANfProdutos->observacoes:null), ['class' => 'form-control' , "id" => "input_descricao_servico", "rows" => 4]) !!}
{!! Form::label('','ORIGEM') !!} * {!! Form::select('origem', \App\Http\Controllers\MRA\RNfListasTsController::Get_options_origem(), ($acao=='edit'?$MRANfProdutos->origem:null), ['class' => 'form-control select_single_no_trigger bootstrap-select-st2', 'data-live-search' => 'true', "dropdown-menu-right"=>"", "id" => "input_origem"]) !!}
{!! Form::label('','CST') !!} * {!! Form::select('cst', \App\Http\Controllers\MRA\RNfListasTsController::Get_options_cst(), ($acao=='edit'?$MRANfProdutos->cst:null), ['class' => 'form-control select_single_no_trigger bootstrap-select-st2', 'data-live-search' => 'true', "dropdown-menu-right"=>"", "id" => "input_cst"]) !!}
{!! Form::label('','CFOP') !!} * {!! Form::select('cfop', \App\Http\Controllers\MRA\RNfListasTsController::Get_options_cfop(), ($acao=='edit'?$MRANfProdutos->cfop:null), ['class' => 'form-control select_single_no_trigger bootstrap-select-st2', 'data-live-search' => 'true', "dropdown-menu-right"=>"", "id" => "input_cfop"]) !!}
{!! Form::label('','NCM') !!} * {!! Form::number('ncm', ($acao=='edit'?$MRANfProdutos->ncm:null), ['class' => 'form-control', "id" => "input_ncm", "maxlength"=>8]) !!}
{!! Form::label('','CEST') !!} {!! Form::text('cest', ($acao=='edit'?$MRANfProdutos->cest:null), ['class' => 'form-control', "id" => "input_cest", "maxlength"=>50]) !!}
{!! Form::label('','Valor de Desconto') !!}
R$
{!! Form::text('valor_desconto', ($acao=='edit'?\App\Helper\Helper::H_Decimal_DB_ptBR($MRANfProdutos->valor_desconto):null), ['class' => 'form-control money_v2', "placeholder" => "0,00", "id" => "input_valor_desconto"]) !!}
{!! Form::label('','Valor do Seguro') !!}
R$
{!! Form::text('valor_seguro', ($acao=='edit'?\App\Helper\Helper::H_Decimal_DB_ptBR($MRANfProdutos->valor_seguro):null), ['class' => 'form-control money_v2', "placeholder" => "0,00", "id" => "input_valor_seguro"]) !!}
{!! Form::label('','ICMS - CST') !!} {!! Form::select('icms_cst', \App\Http\Controllers\MRA\RNfListasTsController::Get_options_cst_icms(), ($acao=='edit'?$MRANfProdutos->icms_cst:null), ['class' => 'form-control select_single_no_trigger', 'data-live-search' => 'true', "id" => "input_icms_cst"]) !!}
{!! Form::label('','ICMS %') !!}
%
{!! Form::text('icms_icms', ($acao=='edit'?\App\Helper\Helper::H_Decimal_DB_ptBR($MRANfProdutos->icms_icms):null), ['class' => 'form-control money_v2', "placeholder" => "0,00", "id" => "input_icms_icms"]) !!}
{!! Form::label('','IPI - CST') !!} * {!! Form::select('ipi_cst', \App\Http\Controllers\MRA\RNfListasTsController::Get_options_cst_ipi(), ($acao=='edit'?$MRANfProdutos->ipi_cst:null), ['class' => 'form-control select_single_no_trigger', 'data-live-search' => 'true', "id" => "input_ipi_cst"]) !!}
{!! Form::label('','IPI %') !!}
%
{!! Form::text('ipi_ipi', ($acao=='edit'?\App\Helper\Helper::H_Decimal_DB_ptBR($MRANfProdutos->ipi_ipi):null), ['class' => 'form-control money_v2', "placeholder" => "0,00", "id" => "input_ipi_ipi"]) !!}
{!! Form::label('','PIS - CST') !!} * {!! Form::select('pis_cst', \App\Http\Controllers\MRA\RNfListasTsController::Get_options_cst_pis_ou_cofins(), ($acao=='edit'?$MRANfProdutos->pis_cst:null), ['class' => 'form-control select_single_no_trigger', 'data-live-search' => 'true', "dropdown-menu-right"=>"", "id" => "input_pis_cst"]) !!}
{!! Form::label('','PIS %') !!}
%
{!! Form::text('pis_pis', ($acao=='edit'?\App\Helper\Helper::H_Decimal_DB_ptBR($MRANfProdutos->pis_pis):null), ['class' => 'form-control money_v2', "placeholder" => "0,00", "id" => "input_pis_pis"]) !!}
{!! Form::label('','COFINS - CST - ') !!} * {!! Form::select('cofins_cst', \App\Http\Controllers\MRA\RNfListasTsController::Get_options_cst_pis_ou_cofins(), ($acao=='edit'?$MRANfProdutos->cofins_cst:null), ['class' => 'form-control select_single_no_trigger', 'data-live-search' => 'true', "dropdown-menu-right"=>"", "id" => "input_cofins_cst"]) !!}
{!! Form::label('','COFINS %') !!}
%
{!! Form::text('cofins_cofins', ($acao=='edit'?\App\Helper\Helper::H_Decimal_DB_ptBR($MRANfProdutos->cofins_cofins):null), ['class' => 'form-control money_v2', "placeholder" => "0,00", "id" => "input_cofins_cofins"]) !!}
{{--@if(0) @if(App\Models\Permissions::permissaoModerador(\Auth::user()))
@php $parserList = array(); $userlist = App\Models\User::get()->toArray(); array_unshift($userlist, array('id' => '', 'name' => '')); array_unshift($userlist, array('id' => 0, 'name' => 'Disponível para todos')); foreach($userlist as $u) { $parserList[$u['id']] = $u['name']; } @endphp {!! Form::select('r_auth', $parserList, null, ['class' => 'form-control']) !!}
@endif @endif--}}
Voltar @if($acao == 'add' and App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@store")) @endif @if($acao == 'edit' and App\Models\Permissions::permissaoUsuario(\Auth::user(), "$controller@update")) @endif
{!! Form::close() !!} @section('script') @endsection @endsection