@extends('layouts.digitar') @section('Breadcrumbs') {!! Breadcrumbs::render('lawsProjects.show') !!} @endsection @section('content')
Voltar
@if (isset($lawsProject)) @if (isset($lawsProject->id) && $tramitacao)

TRAMITAÇÃO

{!! Form::label('new_advice_situation_id', 'Situação do projeto:') !!} {!! Form::select('new_advice_situation_id', $advice_situation_law, null, ['class' => 'form-control']) !!}
{!! Form::label('new_status_processing_law_id', 'Status do trâmite:') !!} {!! Form::select('new_status_processing_law_id', $status_processing_law, null, ['class' => 'form-control']) !!}
@if (Auth::user()->roleHasPermission('dateAdvicesLawsProjects.edit'))
{!! Form::label('new_date_processing', 'Data:') !!} {!! Form::text('new_date_processing', null, ['class' => 'form-control datetimepicker1']) !!}
@else
{!! Form::label('new_date_processing', 'Data:') !!} {!! Form::text('new_date_processing', null, ['class' => 'form-control datetimepicker1', 'disabled']) !!}
@endif
{!! Form::label('destination_id', 'Destinatários:') !!} {!! Form::select('destination_id', $destinations, null, ['class' => 'form-control']) !!}
{!! Form::label('date_end', 'Prazo:') !!} {!! Form::text('date_end', null, ['class' => 'form-control datepicker']) !!}
{!! Form::label('days', 'Dias:') !!} {!! Form::number('days', null, ['class' => 'form-control', 'disabled']) !!}
{!! Form::label('new_observation', ' Observações:') !!} {!! Form::textarea('new_observation', null, ['class' => 'form-control ckeditor']) !!}
{!! Form::label('processing_file', 'Anexar Arquivo:') !!} {!! Form::file('processing_file', ['class' => 'form-control']) !!}
@forelse($processing_last as $key => $processing)

{{ $processing->adviceSituationLaw->name }}

{{ $processing->processing_date }}

Status: {{ $processing->statusProcessingLaw->name ?? '' }}

Destinatário: {{ $processing->destination->name ?? '' }}

Prazo: {{ $processing->date_end ?? 'Prazo não definido' }}

Observação: {!! \Illuminate\Support\Str::limit($processing->obsevation, 150, '...') !!}

Anexo: @if (isset($processing->processing_file)) @else

Nenhum anexo

@endif

@if (Auth::user()->id === $processing->owner_id || $processing->id === $first_processing->id || Auth::user()->hasRole('root')) @if ($_SERVER['HTTP_HOST'] == 'cmcostarica.sis.superlegis.com.br' || $_SERVER['HTTP_HOST'] == 'dev.localhost:8000') @endif @endif
@empty
Não existe tramitação
@endforelse
@endif @endif
@endsection