@extends('layouts.app') @section('content')
Producto - {{isset($edit) ? 'Actualizar' : 'Nuevo'}}
@if(isset($edit)) {!! Form::model($edit,['url' => ['producto/actualizar/'.$edit->servicio_id],'method'=>'PATCH','enctype'=>'multipart/form-data','id'=>'frmClientes']) !!} @else {!! Form::open(['url' => 'producto','method'=>'POST','enctype'=>'multipart/form-data','role'=>'form','id'=>'frmContratos']) !!} @endif
{!! Form::mselect('tipos',$tipo_productos, isset($edit) ? $edit->servicio_servicio_tipo_id : null,'Tipo Producto',$errors,6,true) !!} {!! Form::mtext('nombre',isset($edit) ? $edit->servicio_nombre : null,'Nombre',$errors,6,true,true,[['onkeyup'=>'javascript:this.value=this.value.toUpperCase()']]) !!}
{!! Form::mtextAr('descripcion',isset($edit) ? $edit->servicio_descripcion : null,'Descripción',$errors,6,false,false,'onkeyup="javascript:this.value=this.value.toUpperCase()"') !!}
{!! Form::mselect('impuesto',$impuestos,(@$edit->servicio_impuesto_id != null ? $edit->servicio_impuesto_id : null),'Impuesto',$errors,6,false) !!}

servicio_impuesto_incluido ? 'checked' : '' : ''}} data-toggle="toggle" data-onstyle="primary" data-offstyle="danger">

servicio_producto_tipo ? 'checked' : '' : 'checked'}} data-toggle="toggle" data-onstyle="primary" data-offstyle="danger">

es_arreglo_floral ? 'checked' : '' : ''}} data-toggle="toggle" data-onstyle="primary" data-offstyle="danger">

es_tributo ? 'checked' : '' : ''}} data-toggle="toggle" data-onstyle="primary" data-offstyle="danger">
{!! Form::select('estado', $estados, (isset($edit) ? $edit->servicio_estado : null), ['class' => 'form-control', 'placeholder' =>'Seleccionar'] ) !!}
{!! Form::close() !!}
@endsection @section('script') @endsection