@extends('layout')


@section('content')

<div class="page-header page-header-default">
	<div class="breadcrumb-line">
		<ul class="breadcrumb">
			<li><a href="{{ url("") }}"><i class="icon-home2 position-left"></i> Master</a></li>
			<li>Tempat Penyerahan</li>
			<li class="active">Tambah</li>
		</ul>
	</div>
</div>

<div class="content">
	<div class="panel panel-flat">
		<div class="panel-heading">
			<h5 class="panel-title">Tambah Tempat Penyerahan</h5>
			<div class="heading-elements">
				<ul class="icons-list">
		      		<li><a href="{{ url('tempat_penyerahan') }}" class="text-warning"><i class="icon-circle-left2 warning"></i> Kembali</a></li>
		      	</ul>
	       	</div>
	    </div>

	    @php
	    	$uri = url("tempat_penyerahan");
	    	if($data['id']!=""){
	    		$uri .= "/$data[id]";
	    	}
	    @endphp
	    <form class="form-horizontal" id="form-tempat-penyerahan" method="POST" action="{{ $uri }}">
	    	{{ csrf_field() }}
	    	{{ method_field($method_data) }}
	    <div class="panel-body">
	    	<div class="row">
	    		<div class="col-sm-6 col-md-6">

	    			<div class="form-group" >
				    	{{ Form::label("Lokasi", "", ['class'=>'control-label col-sm-2 col-md-2']) }}
				    	<div class="col-sm-10 col-md-10">
				    		{{ Form::select("id_lokasi", $lokasi, $data['id_lokasi'], ['class'=>'form-control']) }}
				    	</div>
				    </div>

	    			<div class="form-group" >
				    	{{ Form::label("Nama", "", ['class'=>'control-label col-sm-2 col-md-2']) }}
				    	<div class="col-sm-10 col-md-10">
				    		{{ Form::text("nama", $data['nama'], ['class'=>'form-control']) }}
				    	</div>
				    </div>

	    			<div class="form-group" >
				    	{{ Form::label("Alamat", "", ['class'=>'control-label col-sm-2 col-md-2']) }}
				    	<div class="col-sm-10 col-md-10">
				    		{{ Form::textarea("alamat", $data['alamat'], ['class'=>'form-control', 'rows'=>5]) }}
				    	</div>
				    </div>

			    </div>
			</div> <!-- end : .row -->
	    </div>

	    <div class="panel-footer">
	    	<div class="col-md-6 col-sm-6 text-right">
		    	{{ link_to("tempat_penyerahan", "Batal", ['class'=>'btn btn-md btn-default']) }}
		    	{{ Form::submit("Simpan", ['class'=>'btn btn-md btn-success']) }}
		    </div>
	    </div>
		</form>

	</div>
</div>

<script type="text/javascript">
$(document).ready(function(){

});
</script>
@endsection