|
|
@ -6,7 +6,7 @@ |
|
|
<tr> |
|
|
<tr> |
|
|
<th class="col-sm-4">{{ trans('user.father') }}</th> |
|
|
<th class="col-sm-4">{{ trans('user.father') }}</th> |
|
|
<td class="col-sm-8"> |
|
|
<td class="col-sm-8"> |
|
|
@can ('edit', $currentUser) |
|
|
|
|
|
|
|
|
@can ('edit', $user) |
|
|
@if (request('action') == 'set_father') |
|
|
@if (request('action') == 'set_father') |
|
|
{{ Form::open(['route' => ['family-actions.set-father', $user->id]]) }} |
|
|
{{ Form::open(['route' => ['family-actions.set-father', $user->id]]) }} |
|
|
{!! FormField::select('set_father_id', $malePersonList, ['label' => false, 'value' => $user->father_id, 'placeholder' => trans('app.select_from_existing_males')]) !!} |
|
|
{!! FormField::select('set_father_id', $malePersonList, ['label' => false, 'value' => $user->father_id, 'placeholder' => trans('app.select_from_existing_males')]) !!} |
|
|
@ -32,7 +32,7 @@ |
|
|
<tr> |
|
|
<tr> |
|
|
<th>{{ trans('user.mother') }}</th> |
|
|
<th>{{ trans('user.mother') }}</th> |
|
|
<td> |
|
|
<td> |
|
|
@can ('edit', $currentUser) |
|
|
|
|
|
|
|
|
@can ('edit', $user) |
|
|
@if (request('action') == 'set_mother') |
|
|
@if (request('action') == 'set_mother') |
|
|
{{ Form::open(['route' => ['family-actions.set-mother', $user->id]]) }} |
|
|
{{ Form::open(['route' => ['family-actions.set-mother', $user->id]]) }} |
|
|
{!! FormField::select('set_mother_id', $femalePersonList, ['label' => false, 'value' => $user->mother_id, 'placeholder' => trans('app.select_from_existing_females')]) !!} |
|
|
{!! FormField::select('set_mother_id', $femalePersonList, ['label' => false, 'value' => $user->mother_id, 'placeholder' => trans('app.select_from_existing_females')]) !!} |
|
|
@ -59,7 +59,7 @@ |
|
|
<th class="col-sm-4">{{ trans('user.parent') }}</th> |
|
|
<th class="col-sm-4">{{ trans('user.parent') }}</th> |
|
|
<td class="col-sm-8"> |
|
|
<td class="col-sm-8"> |
|
|
|
|
|
|
|
|
@can ('edit', $currentUser) |
|
|
|
|
|
|
|
|
@can ('edit', $user) |
|
|
<div class="pull-right"> |
|
|
<div class="pull-right"> |
|
|
@if (request('action') == 'set_parent') |
|
|
@if (request('action') == 'set_parent') |
|
|
{{ link_to_route('users.show', 'Batal', [$user->id], ['class' => 'btn btn-default btn-xs']) }} |
|
|
{{ link_to_route('users.show', 'Batal', [$user->id], ['class' => 'btn btn-default btn-xs']) }} |
|
|
@ -73,7 +73,7 @@ |
|
|
{{ $user->parent->husband->name }} & {{ $user->parent->wife->name }} |
|
|
{{ $user->parent->husband->name }} & {{ $user->parent->wife->name }} |
|
|
@endif |
|
|
@endif |
|
|
|
|
|
|
|
|
@can('edit', $currentUser) |
|
|
|
|
|
|
|
|
@can('edit', $user) |
|
|
@if (request('action') == 'set_parent') |
|
|
@if (request('action') == 'set_parent') |
|
|
{{ Form::open(['route' => ['family-actions.set-parent', $user->id]]) }} |
|
|
{{ Form::open(['route' => ['family-actions.set-parent', $user->id]]) }} |
|
|
{!! FormField::select('set_parent_id', $allMariageList, ['label' => false, 'value' => $user->parent_id, 'placeholder' => trans('app.select_from_existing_couples')]) !!} |
|
|
{!! FormField::select('set_parent_id', $allMariageList, ['label' => false, 'value' => $user->parent_id, 'placeholder' => trans('app.select_from_existing_couples')]) !!} |
|
|
@ -87,7 +87,7 @@ |
|
|
<tr> |
|
|
<tr> |
|
|
<th>{{ trans('user.wife') }}</th> |
|
|
<th>{{ trans('user.wife') }}</th> |
|
|
<td> |
|
|
<td> |
|
|
@can ('edit', $currentUser) |
|
|
|
|
|
|
|
|
@can ('edit', $user) |
|
|
<div class="pull-right"> |
|
|
<div class="pull-right"> |
|
|
@if (request('action') == 'add_spouse') |
|
|
@if (request('action') == 'add_spouse') |
|
|
{{ link_to_route('users.show', 'Batal', [$user->id], ['class' => 'btn btn-default btn-xs']) }} |
|
|
{{ link_to_route('users.show', 'Batal', [$user->id], ['class' => 'btn btn-default btn-xs']) }} |
|
|
@ -104,7 +104,7 @@ |
|
|
@endforeach |
|
|
@endforeach |
|
|
</ul> |
|
|
</ul> |
|
|
@endif |
|
|
@endif |
|
|
@can('edit', $currentUser) |
|
|
|
|
|
|
|
|
@can('edit', $user) |
|
|
@if (request('action') == 'add_spouse') |
|
|
@if (request('action') == 'add_spouse') |
|
|
<div> |
|
|
<div> |
|
|
{{ Form::open(['route' => ['family-actions.add-wife', $user->id]]) }} |
|
|
{{ Form::open(['route' => ['family-actions.add-wife', $user->id]]) }} |
|
|
@ -125,7 +125,7 @@ |
|
|
<tr> |
|
|
<tr> |
|
|
<th>{{ trans('user.husband') }}</th> |
|
|
<th>{{ trans('user.husband') }}</th> |
|
|
<td> |
|
|
<td> |
|
|
@can ('edit', $currentUser) |
|
|
|
|
|
|
|
|
@can ('edit', $user) |
|
|
<div class="pull-right"> |
|
|
<div class="pull-right"> |
|
|
@if (request('action') == 'add_spouse') |
|
|
@if (request('action') == 'add_spouse') |
|
|
{{ link_to_route('users.show', 'Batal', [$user->id], ['class' => 'btn btn-default btn-xs']) }} |
|
|
{{ link_to_route('users.show', 'Batal', [$user->id], ['class' => 'btn btn-default btn-xs']) }} |
|
|
@ -141,7 +141,7 @@ |
|
|
@endforeach |
|
|
@endforeach |
|
|
</ul> |
|
|
</ul> |
|
|
@endif |
|
|
@endif |
|
|
@can('edit', $currentUser) |
|
|
|
|
|
|
|
|
@can('edit', $user) |
|
|
@if (request('action') == 'add_spouse') |
|
|
@if (request('action') == 'add_spouse') |
|
|
<div> |
|
|
<div> |
|
|
{{ Form::open(['route' => ['family-actions.add-husband', $user->id]]) }} |
|
|
{{ Form::open(['route' => ['family-actions.add-husband', $user->id]]) }} |
|
|
|