@extends(layoutTenant()) @section('content')

Ocorrência

@if ($errors->any())
@endif @if (session('success'))
{{ session('success') }}
@endif @if (session('erro'))
{{ session('erro') }}
@endif
Filtros
{!! Form::open(['url'=>routeTenant('ocorrencia.buscar'), 'class'=>'form form-inline']) !!}
{!! Form::label('Protocolo', 'Protocolo:') !!}
{!! Form::label('setores', 'Tipo:') !!}
{!! Form::label('Responsável:', 'Responsável:') !!}
{!! Form::label('Data inclusão', 'Data inclusão:') !!}
{!! Form::label('Departamento', 'Departamento:') !!}
{!! Form::label('Departamento', 'Situação:') !!}
{!! Form::submit('Pesquisar', ['class'=>'btn btn-primary btn btn-outline-success my-2 my-sm-0']) !!}
{!! Form::close() !!}
Ocorrências
@foreach($categories as $category) status == "Em aberto") style="background-color: green; font-weight: bold; color: #FFF;" @endif> @endforeach
Protocolo Incluído em Pessoa Departamento Categoria(s) Responsável Status Editar Ver
{{ $category->protocolo }}
{{ $category->created_at->format('d/m/Y') }}
{{$category->nome_razao}} {{$category->departamentos}} @if($category->tipo == 'de') Denúncia @endif @if($category->tipo == 're') Reclamação @endif @if($category->tipo == 'so') Solicitação @endif @if($category->tipo == 'su') Sugestão @endif @if($category->tipo == 'el') Elogio @endif @if($category->tipo == 'si') Simplifique @endif @if($category->user == null) @else {{ $category->user->name }} @endif {{ $category->status }}
Exibindo {{$categories->currentPage()}} até {{$categories->perPage()}} de {{$categories->count()}} linhas - {{$categories->perPage()}} registros por página
@if(isset($dataform)) {!! $categories->appends($dataform)->links() !!} @else {!! $categories->links() !!} @endif
@endsection @section('post-script') @endsection