@extends('admin.layouts.main',array( 'scripts' => array( path_asset('path.backoffice.js_path') . '/view/generic/backend-media-picker.js', path_asset('path.backoffice.js_path') . '/view/member/member-form.js' ) )) @section('content')

Manage Member

@if($canView)
@endif
{!! Form::model($member) !!}
{!! Form::text('name', null, array( 'id' => 'name_input', 'class' => 'form-control', 'maxlength' => '250', 'data-toggle' => ($errors->has('name') ? 'tooltip': null), 'title' => ($errors->has('name') ? $errors->first('name'): null), 'disabled' => $canManage ? null : 'disabled')) !!}
{!! Form::textarea('notes', null, array( 'id' => 'notes_input', 'class' => 'form-control', 'data-toggle' => ($errors->has('notes') ? 'tooltip': null), 'title' => ($errors->has('notes') ? $errors->first('notes'): null), 'disabled' => $canManage ? null : 'disabled', 'rows' => 8 )) !!}
@foreach ($listCommittees as $committee) @php if ($committee->type === 'legalCommittee') { $type = 'committee'; $display = 'none'; if ($member->legal_committee) { $display = 'block'; } } else if ($committee->type === 'legalOpinions') { $type = 'opinions'; $display = 'none'; if ($member->legal_opinions) { $display = 'block'; } } else { $type = 'standard'; $display = 'block'; if ($member->member_type === 'noType') { $display = 'none'; } } @endphp
id, $committees) ? 'checked' : '' }}>
@if (count($committee->workGroups))
@foreach ($committee->workGroups as $workGroup)
id, $workGroups) ? 'checked' : '' }}>
@endforeach
@endif
@endforeach
@php $indexDomains = 0; @endphp @foreach ($domains as $domain)
{!! Form::text('domain[]', $domain, array( 'class' => 'form-control', 'maxlength' => '250', 'title' => ($errors->has('domain.' . $indexDomains) ? $errors->first('domain'): null) )) !!}
@php $indexDomains++; @endphp @endforeach
{!! Form::hidden('logo_id', '', array('id' => 'member_logo_id', 'class' => 'media-selection')) !!}
{!! Form::select('country_id', $listCountries, null, array( 'id' => 'country_id', 'class' => 'form-control')) !!}
member_type === 'noType' ? 'checked' : '' }}>
member_type === 'regular' ? 'checked' : '' }}>
member_type === 'associate' ? 'checked' : '' }}>
@php $optionsArr = ['id' => 'legal-committee', 'class' => 'form-check-input', 'data-role' => 'legal-committee']; if ($member->member_type === 'noType') { $optionsArr['disabled'] = 'disabled'; } @endphp {{ Form::checkbox('legal_committee', '1', $member->legal_committee, $optionsArr) }}
@php $optionsArr = ['id' => 'legal-opinions', 'class' => 'form-check-input', 'data-role' => 'legal-opinions']; if ($member->legal_committee || $member->member_type === 'noType') { $optionsArr['disabled'] = 'disabled'; } @endphp {{ Form::checkbox('legal_opinions', '1', $member->legal_opinions, $optionsArr) }}
state === 'active' ? 'checked' : '' }}>
state === 'inactive' ? 'checked' : '' }}>
@php $optionsArr = ['id' => 'user-permission-level', 'class' => 'form-check-input', 'data-role' => 'user-permission-level']; @endphp {{ Form::checkbox('user_permission_level', '1', $member->user_permission_level, $optionsArr) }}
@if($canEdit)
{!! Form::submit(Lang::get('backend.save'), array('class' => 'btn btn-primary', 'id' => 'member_save_btn')) !!}
@endif {!! Form::close() !!}
@stop