{{-- @extends('layouts.app') @section('content') --}} {{-- --}} @php $familyPage = request()->segment(1); //returns 'families from url' $familyPageFound = ($familyPage == "currentfamilies"); if ($familyPageFound) { // $indexPage = route('currentfamilies.index'); $indexPage = url('/currentfamilies'); $titlePage = __('families.edit.edit'); }; $oldfamilyPage = request()->segment(1); //returns 'oldfamilies from url' $oldfamilyPageFound = ($oldfamilyPage == "oldfamilies"); if ($oldfamilyPageFound) { $familyPageFound = false; $indexPage = url('/oldfamilies'); $titlePage = __('families.edit.oldedit'); }; // dd($indexPage); @endphp {{-- Edit Family Form - Membership --}} {{$titlePage}} {{-- --}} @include('components/mainstyle')
@if(session('status'))
{{ session('status') }}
@endif {{-- @if ($familyPageFound)
@endif --}} @if ($familyPageFound) id]) }}" method="POST" enctype="multipart/form-data"> @endif @if ($oldfamilyPageFound) id]) }}" method="POST" enctype="multipart/form-data"> @endif @csrf @method('PUT')
{{--

{{__('families.edit.edit')}}

--}}

{{$titlePage}}

{{-- {{__('families.back')}} --}} {{-- gewijzigd op 18-11-2024 --}} {{__('members.back')}} @if ($family->old_family == 1) @php $oldFamilyButtonStyle='"display: none"'; // dd($oldFamilyButtonStyle); $familyButtonStyle='"display: block"'; @endphp @else @php $oldFamilyButtonStyle='"display: block"'; // dd($oldFamilyButtonStyle); $familyButtonStyle='"display: none"'; @endphp @endif

{{-- @include('components/members-logo', ['logotype' => 'small']) --}}
{{-- The fields old_family and date_old_family must always be present on the page, otherwise the switch to the old family will not work!! --}} {{-- @dump($family) --}} {{-- @dump("date_old_family = " . $family->date_old_family) --}} @if ($familyPageFound)
@endif @if ($oldfamilyPageFound)
@include('families.fields', ['fieldName' => 'old_family','layoutType' => 'checkbox_readonly', 'value' => $family->old_family]) @include('families.fields', ['fieldName' => 'date_old_family','layoutType' => 'readonly', 'value' => $family->date_old_family])
@endif {{-- @php $old_familyVisble = setting('families_old_family'); @endphp @if (!($old_familyVisble))
old_family == 1 ? 'checked' : '' }}>
@endif --}} {{-- @php $date_old_familyVisble = setting('families_date_old_family'); @endphp @if (!($date_old_familyVisble))
@endif --}} {{-- The fields old_family and date_old_family must always be present on the page, otherwise the switch to the old family will not work!! --}} @include('families.fields', ['fieldName' => 'id','layoutType' => 'readonly', 'value' => $family->id]) @include('families.fields', ['fieldName' => 'created_at','layoutType' => 'readonly', 'value' => $family->created_at]) @include('families.fields', ['fieldName' => 'updated_at','layoutType' => 'readonly', 'value' => $family->updated_at]) @include('families.fields', ['fieldName' => 'familyname','layoutType' => 'input_required', 'value' => $family->familyname]) @include('families.fields', ['fieldName' => 'preposition','layoutType' => 'select','array' => $prepositions, 'db_Fieldname' => 'preposition', 'value' => $family->preposition]) @include('families.fields', ['fieldName' => 'prefix','layoutType' => 'select','array' => $prefixes, 'db_Fieldname' => 'prefix', 'value' => $family->prefix]) @include('families.fields', ['fieldName' => 'initials','layoutType' => 'input_required', 'value' => $family->initials]) @include('families.fields', ['fieldName' => 'address','layoutType' => 'input_required', 'value' => $family->address]) @include('families.fields', ['fieldName' => 'house_number','layoutType' => 'input_required', 'value' => $family->house_number]) @include('families.fields', ['fieldName' => 'postal_code','layoutType' => 'input_required', 'value' => $family->postal_code]) @include('families.fields', ['fieldName' => 'residence','layoutType' => 'input_required', 'value' => $family->residence]) @include('families.fields', ['fieldName' => 'country','layoutType' => 'input_required', 'value' => $family->country]) @include('families.fields', ['fieldName' => 'phone_number','layoutType' => 'input_Not_required', 'value' => $family->phone_number]) {{-- @include('families.fields', ['fieldName' => 'neighbourhood','layoutType' => 'input_required', 'value' => $family->neighbourhood]) --}} @include('families.fields', ['fieldName' => 'neighbourhood','layoutType' => 'select','array' => $neighbourhood, 'db_Fieldname' => 'neighbourhood', 'value' => $family->neighbourhood]) @include('families.fields', ['fieldName' => 'magazine_send_by_post','layoutType' => 'checkbox', 'value' => $family->magazine_send_by_post]) @include('families.fields', ['fieldName' => 'notes','layoutType' => 'textarea', 'value' => $family->notes]) @include('families.fields', ['fieldName' => 'publish_on_list','layoutType' => 'checkbox', 'value' => $family->publish_on_list])
{{-- --}}
{{-- @endsection --}}