@extends('layouts.app') @section('content') @if($necesidad=="No existe") @else
Loading...
@if(Auth::user()->rol=="admin")@endif @if($necesidad->estado!=5 && $necesidad->solicitante_username==Auth::user()->username)@endif
@if($necesidad->nivel!=1)Nivel 1@endif @if($necesidad->nivel!=2)Nivel 2@endif @if($necesidad->nivel!=3)Nivel 3@endif @if($necesidad->nivel!=4)Nivel 4@endif
@if (empty($necesidad)) @elseif (0==1) @else

NEC_{{$necesidad -> id}} - {{$necesidad -> titulo}}
{{$necesidad -> estado_name}}


@csrf
Respuesta
@foreach ($interaccion as $int) @if ($int->mensaje == "El estado cambio a resuelta")
{{$int->momento}} | {!!nl2br($int->mensaje)!!}
@elseif ($int->mensaje == "El estado cambio a abierta")
{{$int->momento}} | {!!nl2br($int->mensaje)!!}
@elseif ($int->mensaje == "El estado cambio a pendiente")
{{$int->momento}} | {!!nl2br($int->mensaje)!!}
@elseif ($int->mensaje == "El estado cambio a cerrada")
{{substr($int->momento, 0, -4)}} | {!!nl2br($int->mensaje)!!}
@elseif ($int->tipo == 6)

{{substr($int->momento, 0, -4)}} | {!!nl2br($int->mensaje)!!}
@elseif ($int->tipo == 7)

{{substr($int->momento, 0, -4)}} | {!!nl2br($int->mensaje)!!}
@elseif ($int->tipo == 8)

{{substr($int->momento, 0, -4)}} | {!!nl2br($int->mensaje)!!}
@elseif($int->tipo == 9)
{{substr($int->momento, 0, -4)}} | {!!nl2br($int->mensaje)!!}
@elseif($int->tipo == 10)
{{substr($int->momento, 0, -4)}} | {!!nl2br($int->mensaje)!!}
@else

{{$int->creador_name}} {{$int->creador_apellido}}

{{substr($int->momento, 0, -4)}}
@if($int->mensaje!="")

{!!nl2br($int->mensaje)!!}
@endif
@endif @endforeach

{{$necesidad -> solicitante_name}} {{$necesidad -> solicitante_lastname}}

{{substr($necesidad->fecha_solicitud, 0, -4)}}

{!!nl2br($necesidad -> descripcion)!!}

Detalles

Nivel {{$necesidad->nivel}}

Responsable:
@if (isset($necesidad -> responsable_name))
{{$necesidad -> responsable_name}} {{$necesidad -> responsable_lastname}}
@else No hay responsable @endif
Fecha de creacion: {{substr($necesidad->fecha_solicitud, 0, -7)}}
Fecha de limite: @if($necesidad->fecha_limite {{$necesidad->fecha_limite}} @elseif($necesidad->fecha_limite==date("Y-m-d")) {{$necesidad->fecha_limite}} @else {{$necesidad->fecha_limite}} @endif Solicitante:
@if (isset($necesidad -> solicitante_name))
{{$necesidad -> solicitante_name}} {{$necesidad -> solicitante_lastname}}
@else No hay responsable @endif
Urgencia: @if($necesidad->name=="URGENTE")URGENTE @else {{$necesidad -> name}}
@endif Proyecto:
{{$necesidad -> proyecto_name}}
Tipo de necesidad: {{$necesidad -> tipo_name}}
Participantes:
@foreach($participantes as $participante)
{{$participante -> name}} {{$participante -> lastname}}
@endforeach

Añadir participantes

Usuarios disponibles:


@if(isset($users_disponibles)) @foreach($users_disponibles as $user)
{{$user -> name}} {{$user -> lastname}}
@endforeach @endif

Usuarios añadidos:


@if (Auth::user()->username==$necesidad->responsable_username) @if ($necesidad -> estado_name=="Pendiente") @elseif ($necesidad -> estado_name=="Resuelta") @endif @if(Auth::user()->username==$necesidad->solicitante_username) @if($necesidad -> estado_name=="Cerrada") @endif @endif @elseif(Auth::user()->username==$necesidad->solicitante_username) @if ($necesidad -> estado_name=="Resuelta") @elseif($necesidad -> estado_name=="Cerrada") @endif @endif @if(Auth::user()->rol=="admin") @if($necesidad -> estado_name=="Abierta") @endif @endif
@endif
Error
Escribe algun mensaje
@endif @endsection