@extends('layouts.Layout')

@section('content')
<div class="col-md-12">
    <div class="card">
        <div class="header">
	        <h4 class="title">Ubah Data</h4>
	        <p class="category"></p>
	    </div>
	    <div class="content">
	    	<form action="{{route('pendaftar.update',$kartu->id)}}" method="POST">
	    	{{ csrf_field() }}
	    	<input type="hidden" name="_method" value="PUT">
	    	<input type="hidden" name="id_pendaftar" value="{{$kartu->id}}">
	    	
	    	<div class="row">
		    	<div class="col-lg-6">
	                <div class="form-group @if($errors->has('nama')) has-error @endif">
	                    <input type="text" class="form-control border-input" value="{{$kartu->nama}}" name="nama" placeholder="Nama Lengkap">
	                    <span id="helpBlock2" class="help-block" >{{$errors->first('nama')}}</span>
	                </div>
	            </div>
            
		    	<div class="col-lg-3">
	                <div class="form-group @if($errors->has('jeniskelamin')) has-error @endif">
	                    <select class="form-control border-input" value="{{$kartu->jeniskelamin}}" name="jeniskelamin">
	                    <option class="0" disabled="true" >---Jenis Kelamin---</option>
	                    <option>Perempuan</option>
	                    <option>Laki-laki</option>
	                    </select>
	                </div>
	            </div>
	            <div class="col-lg-3">
	                <div class="form-group @if($errors->has('agama')) has-error @endif">
	                	<select class="form-control border-input" value="{{$kartu->agama}}" name="agama">
	                    <option class="0" disabled="true" >---Pilih Agama---</option>
	                    <option>Kristen Protestan</option>
	                    <option>Kristen Katolik</option>
	                    <option>Islam</option>
	                    <option>Hindu</option>
	                    <option>Buddha</option>
	                    <option>Konghuchu</option>
	                    </select>
	                    <span id="helpBlock2" class="help-block">{{$errors->first('agama')}}</span>
	                </div>
	            </div>
	    	</div>
	    	<div class="row">   
		    	<div class="col-lg-2">
	                <div class="form-group @if($errors->has('tempatlahir')) has-error @endif">
	                    <input type="text" class="form-control border-input" value="{{$kartu->tempatlahir}}" name="tempatlahir" placeholder="Tempat lahir">
	                    <span id="helpBlock2" class="help-block">{{$errors->first('tempatlahir')}}</span>
	                </div>
	            </div>

		    	<div class="col-lg-2">
	                <div class="form-group @if($errors->has('tanggallahir')) has-error @endif">
	                    <input type="date" class="form-control border-input" value="{{$kartu->tanggallahir}}" name="tanggallahir" placeholder="Tanggal lahir">
	                    <span id="helpBlock2" class="help-block">{{$errors->first('tanggallahir')}}</span>
	                </div>
	            </div>
	            <div class="col-lg-3">
	                <div class="form-group @if($errors->has('kebutuhan_khusus')) has-error @endif">
	                    <select class="form-control border-input"  value="{{$kartu->kebutuhan_khusus}}" name="kebutuhan_khusus">
			                    <option class="0" disabled="true">Berkebutuhan khusus ?</option>
			                    <option>Tidak</option>
			                    <option>Netra(A)</option>
			                    <option>Rungu</option>
			                    <option>Grahita Ringan</option>
			                    <option>Grahita Sedang</option>
			                    <option>Daksa Ringan</option>
			                    <option>Daksa Sedang</option>
			                    <option>Laras</option>
			                    <option>Wicara</option>
			                    <option>Hiper Aktif</option>
			                    <option>Cerdas Istimewa</option>
			                    <option>Bakat Istimewa</option>
			                    <option>Kesulitan Belajar</option>
			                    <option>Narkoba</option>
			                    <option>Indigo</option>
			                    <option>Autis</option>
			                    <option>Down Sindrome</option>
			                    <option>Lainnya</option>
		                    </select>
	                    <span id="helpBlock2" class="help-block">{{$errors->first('kebutuhan_khusus')}}</span>
	                </div>
	            </div>
	            <div class="col-lg-3">
	                <div class="form-group @if($errors->has('alamat')) has-error @endif">
	                    <input type="text" class="form-control border-input" value="{{$kartu->alamat}}" name="alamat" placeholder="Alamat Lengkap">
	                    <span id="helpBlock2" class="help-block">{{$errors->first('alamat')}}</span>
	                </div>
	            </div>
	            <div class="col-lg-2">
	                <div class="form-group @if($errors->has('no_hp')) has-error @endif">
	                    <input type="text" class="form-control border-input" value="{{$kartu->no_hp}}" name="no_hp" placeholder="Nomor Telepon">
	                    <span id="helpBlock2" class="help-block">{{$errors->first('no_hp')}}</span>
	                </div>
	            </div>
	        </div>
           
            <div class="row">
            	<div class="col-md-12">
            		<a href="{{ route('pendaftar.index')}}" class="btn btn-default">Cancel</a>
					<input type="submit" class="btn btn-default">
            	</div>
            </div>
	    	</form>
	    </div>
    </div>
</div>
@endsection