@extends('layouts.base') @section('content')
@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach

@endif @if (session()->has('success'))
@if(is_array(session()->get('success')))
    @foreach (session()->get('success') as $message)
  • {{ $message }}
  • @endforeach
@else {{ session()->get('success') }} @endif
@endif
@csrf

បញ្ចូលសមាជិកស្នាក់នៅ

{!! Form::select('fam_pos_id', $fampos, $fbmember->fam_pos_id !== null ? $fbmember->fam_pos_id : 1, ['placeholder' => 'ទំនាក់ទំនងជាមួយមេគ្រួសារ', 'class' => 'form-control', 'required' => true, 'id' => 'fam_pos_id']) !!}
@if($fbmember->gender !== null && $fbmember->gender == 'm')    @elseif($fbmember->gender !== null && $fbmember->gender == 'f')    @else    @endif

{!! Form::select( 'pro_code', $provinces, $fbmember->pro_code !== null ? $fbmember->pro_code : null, [ 'placeholder' => 'ជ្រើសរើស រាជធានី/ខេត្ត', 'required' => true, 'id'=>'selectProvince', 'class' => 'apply-select2-special form-control', ]) !!}
{!! Form::select( 'dis_code', $districts, $fbmember->dis_code !== null ? $fbmember->dis_code : null, [ 'placeholder' => 'ជ្រើសរើស ក្រុង/ស្រុក/ខណ្ឌ', 'required' => true, 'id'=>'selectDistrict', 'class' => 'apply-select2-special form-control', ]) !!}
{!! Form::select( 'com_code', $communes, $fbmember->com_code !== null ? $fbmember->com_code : null, [ 'placeholder' => 'ជ្រើសរើស ឃុំ/សង្កាត់', 'required' => true, 'id'=>'selectCommune', 'class' => 'apply-select2 form-control', ]) !!}
{!! Form::select( 'vil_code', $villages, $fbmember->vil_code !== null ? $fbmember->vil_code : null, [ 'placeholder' => 'ជ្រើសរើស ភូមិ', 'required' => true, 'id'=>'selectVillage', 'class' => 'apply-select2 form-control', ]) !!}
{{ Form::hidden('fbook_id', $residence_id) }}

{!! Form::select( 'nationality_id', $nationalities, $fbmember->nationality_id !== null ? $fbmember->nationality_id : 1, [ 'placeholder' => 'ជ្រើសរើស សញ្ជាតិ', 'id'=>'nationality_id', 'class' => 'form-control', ]) !!}
{!! Form::select( 'ethnic_id', $ethnics, $fbmember->ethnic_id !== null ? $fbmember->ethnic_id : 1, [ 'placeholder' => 'ជ្រើសរើស ជនជាតិ', 'id'=>'ethnic_id', 'class' => 'form-control', ]) !!}
{!! Form::select( 'religion_id', $religions, $fbmember->religion_id !== null ? $fbmember->religion_id : 1, [ 'placeholder' => 'ជ្រើសរើស សាសនា', 'id'=>'religion_id', 'class' => 'form-control', ]) !!}
{!! Form::select( 'education_id', $educations, $fbmember->education_id !== null ? $fbmember->education_id : null, [ 'placeholder' => 'ជ្រើសរើស កំរិតវប្បធម៌', 'id'=>'education_id', 'class' => 'form-control', ]) !!}
{!! Form::select( 'occupation_id', $occupations, $fbmember->occupation_id !== null ? $fbmember->occupation_id : null, [ 'placeholder' => 'ជ្រើសរើស មុខរបរ', 'id'=>'occupation_id', 'class' => 'form-control', ]) !!}
@if(count($members))

សមាជិកស្នាក់នៅ

@php ($num = 1) @foreach($members as $item) {{-- Form::text('Hide action for viewer user') --}} @php ($num = $num + 1) @endforeach
ល.រ ឈ្មោះ ភេទ ទំនាក់ទំនងជាមួយមេគ្រួសារ ថ្ងៃខែឆ្នាំកំណើត ទីកន្លែងកំណើត សញ្ជាតិ ជនជាតិ សាសនា កំរិតវប្បធម៌ មុខរបរ លេខលិខិតសំគាល់ ឈ្មោះឪពុក ម្ដាយ ថ្ងៃ​ខែឆ្នាំចុះបញ្ជី ថ្ងៃ​ខែឆ្នាំផ្លាស់ទៅ មក សកម្មភាព
{{ $num }} {{$item->lname_kh.' '.$item->fname_kh}} @if ($item->gender!= '' && strtolower($item->gender)=='f') ស្រី @else ប្រុស @endif {{$item->family_position->position}} @if(!empty($item->birth_of_day)) {{$item->birth_of_day}} - @endif @if(!empty($item->birth_of_month)){{$item->birth_of_month}} - @endif {{$item->birth_of_year}} {{ 'ភូមិ៖'. $item->village->name_kh.' ឃុំ/សង្កាត់៖'.$item->commune->name_kh.' ក្រុង/ស្រុក/ខណ្ឌ៖'.$item->district->name_kh.' រាជធានី/ខេត្ត៖'.$item->province->name_kh }} {{ $item->nationality->nationality}} {{ $item->ethnic->ethnic}} {{ $item->religion->religions}} {{ $item->education->education}} @if($item->occupation->title !='') {{ $item->occupation->title}} @else {{ $item->job}} @endif {{ $item->doc }} {{ $item->fathername }}
{{ $item->mothername }}
@if(!empty($item->reg_day)) {{ $item->reg_day . ' -' }} @endif @if(!empty($item->reg_month)) {{ $item->reg_month . ' -' }} @endif @if(!empty($item->reg_year)) {{ $item->reg_year }} @endif @if(!empty($item->changed_day)) {{ $item->changed_day . ' -' }} @endif @if(!empty($item->changed_month)) {{ $item->changed_month . ' -' }} @endif @if(!empty($item->changed_year)) {{ $item->changed_year }} @endif
កែប្រែ  
@csrf
@endif @endsection @push('scripts') @endpush