<!-- First, extends to the CRUDBooster Layout -->
<?php
setlocale(LC_ALL, 'IND');

//var_dump($warga_bjb);
?>

@extends('crudbooster::admin_template_no_side_bar')
@section('content')
  <form method='post' action='{{ $next }}'>
        <input type="hidden" name="_token" value="{{ csrf_token() }}"/>
        <input type="hidden" name="pemilik_id" value="{{ $pemilik->id }}"/>
        <input type="hidden" name="warga_bjb_id" value="{{ $warga_bjb->id }}"/>
        
        @if ($pesan)
            <div class="text-danger">{!! $pesan !!}</div>
        @endif
        <div class="form-group">
            <label for="nama">Nomor KK </label>
            <p>{{ $warga_bjb->no_kk}}</p>
        </div>
        
        <div class="form-group">
            <label for="nama">Nama </label>
            <p>{{ $warga_bjb->nama_lgkp }}</p>
        </div>
        
        <div class="form-group">
            <label for="nama">Tempat Lahir </label>
            <p>{{ $warga_bjb->tmpt_lhr }}</p>
        </div>
        
        <div class="form-group">
            <label for="nama">Tanggal Lahir </label>
            <p>{{ $warga_bjb->tgl_lhr }}</p>
        </div>
        
        <div class="form-group">
            <label for="nama">Alamat </label>
            <p>{{ $warga_bjb->alamat2 . ' ,RT.' . $warga_bjb->rt . ' ,RW.' . $warga_bjb->rw }}</p>
        </div>
        
        <div class="form-group">
            <label for="nama">Kelurahan </label>
            <p>{{ $warga_bjb->kelurahan }}</p>
        </div>
        
        <div class="form-group">
            <label for="nama">Kecamatan </label>
            <p>{{ $warga_bjb->kecamatan }}</p>
        </div>
        
    		<div class="form-group">
                <label for="no_iumk">Nomor IUMK/IMK</label>
                <input type="text" class="form-control" id="no_iumk" name="no_iumk" value="{{ $pemilik->no_iumk }}">
               @if (!$pemilik->no_iumk)
                    <div class="text-danger">Harap Lengkapi Nomor IUMK/IMK</div>
                @endif
                @if (\Session::has('pemilikreq'))
                    <div class="text-danger">{!! \Session::get('pemilikreq') !!}</div>
                @endif
    		</div>
    		
    		<div class="form-group">
                <label for="no_iumk">NIB/SKU</label>
                <input type="text" class="form-control" id="nib_sku" name="nib_sku" value="{{ $pemilik->nib_sku }}">
               @if (!$pemilik->nib_sku)
                    <div class="text-danger">Harap Lengkapi Nomor NIB/SKU</div>
                @endif
                @if (\Session::has('pemilikreq'))
                    <div class="text-danger">{!! \Session::get('pemilikreq') !!}</div>
                @endif
    		</div>
    		    
    		<div class="form-group">
                <label for="no_iumk">Nomor NPWP</label>
                <input type="text" class="form-control" id="no_npwp" name="no_npwp" value="{{ $pemilik->no_npwp }}">
                @if (!$pemilik->no_npwp)
                    <div class="text-danger">Harap Lengkapi Nomor NPWP</div>
                @endif
                @if (\Session::has('pemilikreq'))
                    <div class="text-danger">{!! \Session::get('pemilikreq') !!}</div>
                @endif
            </div>
            
            <div class="form-group">
                <label for="no_iumk">Telp Seluler</label>
                <input type="text" class="form-control" id="no_telp" name="no_telp" value="{{ $pemilik->no_telp }}">
               @if (!$pemilik->no_telp)
                    <div class="text-danger">Harap Lengkapi Nomor Telepon Seluler</div>
                @endif
                @if (\Session::has('pemilikreq'))
                    <div class="text-danger">{!! \Session::get('pemilikreq') !!}</div>
                @endif
    		</div>
            
           

          
		<div class='form-group'>     
		    
			<input type="submit" class='btn btn-primary' value="LANJUTKAN" style="margin-left:15px"/>

			<a href="{{ CRUDBooster::mainpath('by-admin/'.$id) }}" class="btn btn-info">Ulangi</a>

		</div>
	</form>

@include('warga.history')	

@endsection