@extends('layouts.page') @section('title') {{ $program->title() }} Add Participants @endsection @section('navs') @if (Auth::user()->can('update', $program)) @if(in_array($program->name(), ['dp_bsvo', 'ds_vc'])) @endif @endif @if (Auth::user()->can('assign_acc', $program)) @endif @endsection @section('content')
{!! Form::open(['url' => route('program.participants.add', [$program->name(), $program->id, $type])]) !!}
Participants
@include ('common.search', ['search_url' => null])
@foreach ($new_participants as $participant) @if($participant->person) @else @endif @if ($participant->project) @else @endif @endforeach
Participant Project Organization State District
{{ $participant->person->fullname() }}{{ $participant->full_name }}{{ $participant->project->code }} @if (!$participant->project->organization || is_string($participant->project->organization)) {{ $participant->project->organization }} @else {{ $participant->project->organization->organization_name }} @endif {{ AppHelper::dropdown($participant->project->state, 'states') }} {!! EasyForm::viewDependent('district','', $participant->project->district, AppHelper::options('districts'), $participant->project->state) !!}
@if (Auth::user()->can('add_participant', $program)) @endif
{{ Form::close() }}
@endsection