PHP Classes

File: resources/views/products/edit.blade.php

Recommend this page to a friend!
  Classes of adriano123456   Budget System   resources/views/products/edit.blade.php   Download  
File: resources/views/products/edit.blade.php
Role: Auxiliary script
Content type: text/plain
Description: Configuration script
Class: Budget System
Elaborate budgets for purchases of products
Author: By
Last change:
Date: 4 months ago
Size: 6,433 bytes
 

Contents

Class file image Download
@extends('layouts.app')

@section('title', 'Dashboard')

@section('content')
<div class="container-fluid" id="content">

    @include('layouts.navigation')

    <div id="main">
        <div class="container-fluid">

            <div class="row-fluid">
                <div class="span12">
                    <div class="box box-bordered box-color">
                        <div class="box-title">
                            <h3><i class="icon-th-list"></i> {{$title}}</h3>
                        </div>
                        <div class="box-content nopadding">
                            {{ Form::open(array('route' => ['produtos.update', $product->id], 'method' => 'put', 'class' => 'form-horizontal form-bordered')) }}
                            @csrf
                                <div class="control-group">
                                    {{Form::label('descricao', 'Descrição*', array('class' => 'control-label'))}}
                                    <div class="controls">
                                        {{Form::text('descricao', $product->descricao, ['id' => 'descricao','placeholder' => 'Insira o responsável', 'class' => 'input-block-level', 'required' => true])}}
                                    </div>
                                </div>
                                <div class="control-group">
                                    {{Form::label('codigo', 'Código*', array('class' => 'control-label'))}}
                                    <div class="controls">
                                        {{Form::text('codigo', $product->codigo, ['id' => 'codigo','placeholder' => '00000', 'class' => 'input-medium', 'required' => true])}}
                                    </div>
                                </div>
                                <div class="control-group">
                                    {{Form::label('espessura', 'Espessura', array('class' => 'control-label'))}}
                                    <div class="controls">
                                        {{Form::text('espessura', $product->espessura, ['id' => 'espessura','placeholder' => '0', 'class' => 'input-medium', 'required' => true])}}
                                    </div>
                                </div>
                                <div class="control-group">
                                    {{Form::label('cobre', 'Cobre', array('class' => 'control-label'))}}
                                    <div class="controls">
                                        {{Form::text('cobre', $product->cobre, ['id' => 'cobre','placeholder' => '0', 'class' => 'input-medium', 'required' => true])}}
                                    </div>
                                </div>
                                <div class="control-group">
                                    {{Form::label('aco', 'Aco', array('class' => 'control-label'))}}
                                    <div class="controls">
                                        {{Form::text('aco', $product->aco, ['id' => 'aco','placeholder' => '0', 'class' => 'input-medium', 'required' => true])}}
                                    </div>
                                </div>
                                <div class="control-group">
                                    {{Form::label('valor', 'Valor', array('class' => 'control-label'))}}
                                    <div class="controls">
                                        {{Form::text('valor', $product->valor, ['id' => 'valor','placeholder' => '0.00', 'class' => 'money input-medium', 'required' => true])}}
                                    </div>
                                </div>
                                <div class="control-group">
                                    {{Form::label('linha', 'Linha', array('class' => 'control-label'))}}
                                    <div class="controls">
                                        {{Form::text('linha', $product->linha, ['id' => 'linha','placeholder' => '...', 'class' => 'input-medium', 'required' => true])}}
                                    </div>
                                </div>
                                <div class="control-group">
                                    {{Form::label('caixa', 'Caixa', array('class' => 'control-label'))}}
                                    <div class="controls">
                                        {{Form::text('caixa', $product->caixa, ['id' => 'caixa','placeholder' => '...', 'class' => 'input-medium', 'required' => true])}}
                                    </div>
                                </div>
                                <div class="control-group">
                                    {{Form::label('unidade', 'Unidade', array('class' => 'control-label'))}}
                                    <div class="controls">
                                        {{Form::text('unidade', $product->unidade, ['id' => 'unidade','placeholder' => '...', 'class' => 'input-medium', 'required' => true])}}
                                    </div>
                                </div>
                                <div class="control-group">
                                    {{Form::label('quantidade', 'Quantidade', array('class' => 'control-label'))}}
                                    <div class="controls">
                                        {{Form::text('quantidade', $product->quantidade, ['id' => 'quantidade','placeholder' => '...', 'class' => 'input-medium', 'disabled' => true])}}
                                        <small>Para alterar a quantidade, deve-se inserir mais produtos no estoque!</small>
                                    </div>
                                </div>
                                <div class="form-actions">
                                    <button type="submit" class="btn btn-primary">Salvar</button>
                                    <a href="{{route('usuarios.index')}}" class="btn">Cancelar</a>
                                </div>
                            {{ Form::close() }}
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </div>

</div>

<script>

(function( $ ) {
    $(function() {
        $('.money').mask('#.##0,00', {reverse: true});
        $('.decimal').mask('##########.##', {reverse: true});
    });
})(jQuery);

</script>

@endsection