@extends('admin.layouts.app') @section('content')

Editar Grupo

Datos

{{-- Mensajes --}}
{{-- De error --}} @if ($errors->any()) @foreach ($errors->all() as $error) @if(!$errors->has('revisores'))
  • {{ $error }}
@endif @endforeach @endif {{-- De exito --}} @if(Session::has('guardado')) @endif
{!! Form::open(array('route' => ['group.update', $group->id], 'method' => 'PATCH','enctype'=>"multipart/form-data", 'class' => 'form-horizontal')) !!} {!! Form::token() !!}
{!! Form::label('', 'Nombre:', ['class' => 'col-sm-3']) !!}
{!! Form::text('name', $group->name, ['class' => 'form-control']) !!}
{!! Form::label('', 'Slug:', ['class' => 'col-sm-3']) !!}
{!! Form::text('slug', $group->slug, ['class' => 'form-control']) !!}
{!! Form::submit() !!}
{!! Form::close() !!}
{{-- Asignar usuarios al grupo --}}

Integrantes ({{ $group->name }})

{{-- De exito --}} @if(Session::has('revisorQuitado')) @endif
@foreach($revisoresDelGrupo as $key => $value)
{!! Form::label('', 'Revisor: ', ['class' => 'col-sm-3']) !!}
{{ $value->nombreRevisor }}
{!! Form::open(array('route' => ['removeRevisorGroup', $value->id], 'method' => 'POST','enctype'=>"multipart/form-data", 'class' => 'form-horizontal')) !!} {!! Form::token() !!} {!! Form::submit('Quitar', ['class' => 'btn btn-danger btn-xs']) !!} {!! Form::close() !!}
@endforeach

Agregar integrante ({{ $group->name }})

@if($errors->has('revisores'))
@endif {{-- De exito --}} @if(Session::has('revisorAgregado')) @endif
{!! Form::open(array('route' => ['addRevisorGroup'], 'method' => 'POST','enctype'=>"multipart/form-data", 'class' => 'form-horizontal')) !!} {!! Form::token() !!} {!! Form::hidden('idGroup', $group->id) !!}
{!! Form::label('', 'Revisor:', ['class' => 'col-sm-3']) !!}
{!! Form::submit() !!}
{!! Form::close() !!}
{{-- asignar proyectos al grupo --}}

Proyectos asignados ({{ $group->name }})

{{-- De exito --}} @if(Session::has('asignacionBorrada')) @endif
@foreach($proyectosAsignados as $key => $value) {{-- {{dd($value)}} --}}
{!! Form::label('', 'Etapa ' . $value->nombreEtapa, ['class' => 'col-sm-3']) !!}
{{ $value->tituloProyecto }}
{!! Form::open(array('route' => ['removeProjectGroup'], 'method' => 'POST','enctype'=>"multipart/form-data", 'class' => 'form-horizontal')) !!} {!! Form::token() !!} {!! Form::hidden('idGroup', $value->group_id) !!} {!! Form::hidden('idProject', $value->project_id) !!} {!! Form::hidden('idStage', $value->stage_id) !!} {!! Form::submit('Quitar', ['class' => 'btn btn-danger btn-xs']) !!} {!! Form::close() !!}
@endforeach

Asignar proyectos ({{ $group->name }})

@if ($errors->has('stages') || $errors->has('projects'))
@endif {{-- De exito --}} @if(Session::has('asignado')) @endif
{!! Form::open(array('route' => ['saveProjectsGroup'], 'method' => 'POST','enctype'=>"multipart/form-data", 'class' => 'form-horizontal')) !!} {!! Form::token() !!} {!! Form::hidden('idGroup', $group->id) !!}
{!! Form::label('', 'Etapa:', ['class' => 'col-sm-3']) !!}
{!! Form::label('', 'Proyecto:', ['class' => 'col-sm-3']) !!}
{!! Form::submit() !!}
{!! Form::close() !!}
@endsection @section('scripts') @endsection