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

Usuários Vinculados aos Setor

@if ($errors->any())
@endif @if (session('success'))
{{ session('success') }}
@endif
Filtros
{!! Form::open(['url' => routeTenant('vinculo.buscar'), 'class' => 'form form-inline']) !!}
{!! Form::label('Usuario', 'Usuarios:') !!}
{!! Form::label('setores', 'Setores:') !!}
{!! Form::label('pagina', 'Resultados por página:') !!}
{!! Form::submit('Pesquisar', ['class' => 'btn btn-primary btn btn-outline-success my-2 my-sm-0']) !!}
{!! Form::close() !!}
Usuários Vinculados ao Setor
@foreach ($categories as $category) @endforeach
Usuário Órgão Data início Data fim Funções
@if ($user = App\UserAccount::find($category->user_account_id)) {{ $user->name }} @else Usuario Inexistente @endif
@if ($setor = App\Setor::find($category->setor_id)) {{ $setor->name }}@if ($setor->status == 0) (desabilitado) @endif @else Setor Inexistente @endif
@php $createdAt = \Carbon\Carbon::parse( $category->entrada)->format('d-m-Y'); @endphp @if ($createdAt == '10-10-2001') @else {{ $createdAt }} @endif
@php $createdAt = \Carbon\Carbon::parse( $category->saida)->format('d-m-Y'); @endphp @if ($createdAt == '10-10-2001') @else {{ $createdAt }} @endif
@if ($category->status == 0 && ($setor = App\Setor::find($category->setor_id)) && $setor->status==1) @endif
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