@extends('layouts.master') @section('title') {{$title}} @lang('translation.starter') @endsection @section('content') @component('components.breadcrumb') @slot('li_1') Pages @endslot @slot('title') {{$title}} @endslot @endcomponent

List {{ $title }}

{{-- @can('create') Create @endcan --}}
@foreach ($prods as $item) @endforeach
Nama Pegawai Nama Kontak Darurat Hubungan Kontak
{{ $item->pegawai }} {{-- @foreach ($item->getKontak as $g) {{ $g->nama}} @endforeach --}} @if ($item->pegawai!=$item->nama_kontak) {{ $item->nama_kontak }} @else - @endif {{-- Jika Perempuan dan status belum menikah --}} @if ( strtolower($item->status_pernikahan) != 'menikah' && !empty($item->status_pernikahan) ) {{ isset($item->alias1) ? $item->alias1 : '-' }} @else @if ($item->jk==2 && strtolower($item->status_pernikahan) == 'menikah') {{ isset($item->alias2) ? $item->alias2 : '-' }} @else {{ $item->hubungan }} @endif @endif {{-- {{ $item->jk }} {{ $item->status_pernikahan }} {{ $item->hubungan }} --}} {{ $item->no_kontak }}
@endsection @section('script') @include('datatable') @endsection