@extends('app') @section('content')

Cash Flow / Datos

{!! Form::open([ 'class' => 'form-datos', 'action' => 'CashFlowController@store', ]) !!}
{!! Form::label('date', 'Fecha', ['class' => 'control-label']) !!} {!! Form::date('date', Carbon\Carbon::today()->format('Y-m-d'), ['class' => 'form-control', 'required' => 'required', 'autofocus' => 'autofocus']) !!} {{ $errors->first('date') }}
@foreach($groups as $group => $categories)

{{-- $group --}}

@foreach($categories as $category) @if($category->formula)
{!! Form::label($category->slug, $category->name, ['class' => 'control-label']) !!}
$
{!! Form::text($category->slug, null, ['class' => 'form-control js-calculated','readonly' => 'readonly', 'data-formula' => $category->formula]) !!}
@else
{!! Form::label($category->slug, $category->name, ['class' => 'control-label']) !!}
$
{!! Form::text($category->slug, null, ['class' => 'form-control', 'required' => 'required']) !!}
{{ $errors->first($category->slug) }}
@endif @endforeach
@endforeach
{!! Form::close() !!}
@endsection @section('script') @endsection