@extends('layouts.app') @section('content')
{{ isset($people->name) ? $people->name : 'ผู้มีสิทธิ์เลือกตั้ง' }}
{{ csrf_field() }}
ตำแหน่ง
: @foreach ($people_has_positions as $php) {{ optional($php->position)->name }} , @endforeach

ชื่อ-สกุล
: {{ $people->name }}
เพศ
: {{ $people->gender }}
ที่อยู่
: {{ optional($people->home)->address }} บ้าน{{ optional($people->mooban)->name }} หมูที่ {{ (int)optional($people->mooban)->moo > 0 ? (int)optional($people->mooban)->moo : '' }} ตำบล{{ optional($people->tambon)->name }} อำเภอ{{ optional($people-> amphur)->name_th }}
อายุ
: {{ $people->age }} , ปีเกิด : {{ $people->born }}
เบอร์โทร
พิกัดบ้าน
: {{ $people->lat }},{{ $people->lon }}

ระดับการศึกษา
: {{ optional($people->education)->name }}
ถิ่นที่อยู่
: {{ $people->residence }}
รายละเอียดถิ่นที่อยู่
: {{ $people->residence_detail }}

การเลือกตั้ง
: {{ $people->vote_location }}
ฝ่าย
: {{ optional($people->associate)->name }}
นักจัดการข้อมูล
: {{ optional($people->trackingUser)->id }}
คำอธิบาย บุคคลเพิ่มเติม
: {{ $people->etc }}
สถานะ
: {{ $people->status }}
@if( $people->die_date > date('Y-m-d',strtotime('1971-12-31')))
วันที่เสียชีวิต
: {{$thai->DateThai ( $people->die_date) }}
@endif
ผู้บันทึกข้อมูล
: {{ optional($people->user)->name }}
วันที่เพิ่ม
: {{ $thai->DateTimeThaiShort( $people->created_at) }}
วันที่ปรับปรุง
: {{ $thai->DateTimeThaiShort($people->updated_at) }}
@endsection