@extends('layouts.digitar') @section('Breadcrumbs') {{-- {!! Breadcrumbs::render('documents.list') !!} --}} @endsection @section('content')
{!! Form::label('owner_id', 'Tipo:') !!} {!! Form::select( 'document_type_id', App\Models\DocumentType::pluck('name', 'id')->prepend('Selecione...', ''), $form->input('document_type_id'), ['class' => 'form-control'], ) !!}
{!! Form::label('date', 'Número:') !!} {!! Form::input('number', 'number', $form->input('number'), ['class' => 'form-control', 'min' => 0]) !!}
{!! Form::label('date', 'Ano:') !!} {!! Form::input('number', 'date', $form->input('date'), [ 'class' => 'form-control', 'min' => 1000, 'max' => 9999, ]) !!}
{!! Form::label('date', 'De:') !!} {!! Form::date( 'start_date', (($form->input('start_date')) !== null ? $form->input('start_date'): null), ['class' => 'form-control'] ) !!}
{!! Form::label('date', 'Até:') !!} {!! Form::date( 'end_date', (($form->input('end_date')) !== null ? $form->input('end_date'): null), ['class' => 'form-control'] ) !!}
{!! Form::label('date', 'Número da Caixa:') !!} {!! Form::input('numberBox', 'number', $form->input('number'), ['class' => 'form-control', 'min' => 0]) !!}
{!! Form::label('', '') !!}
{!! Form::label('', '') !!}
@if($storages->isEmpty())
Sem dados. Insira um novo registro.
@else @include('flash::message') @foreach($storages as $boxes) @endforeach
Caixa Número Ações
{!! $boxes->description !!} @foreach($boxes->getBox as $key => $box) @if($box->getDocument->number==0) - @else {!! $box->getDocument->number . '/' . $box->getDocument->getYear($box->getDocument->date) . ' - ' . $box->getDocument->document_type->name . '
'!!} @endif @endforeach
{{--
@if ($boxes->id) Adicionar em massa @endif
--}}
Transferir Documentos {{-- --}}
{!! $storages->links() !!}
@endif
@endsection