@extends('master')
	@section('content')
	<div class="row">
	<div class="col-md-12">
		<h1>Edit Data</h1>
		</div>
		</div>

<div class="row">
<form class="" action="{{route('book.update',$book->id)}}" method="post">
<input name="_method" type="hidden" value="PATCH">
		{{csrf_field()}}
		<div class="form-group{{ ($errors->has('nama_buku')) ? $errors->first('nama_buku') : '' }}">
		<input type="text" name="nama_buku" class="form-control" placeholder="Enter nama_buku Here" value="{{$book->nama_buku}}">
		{!! $errors->first('nama_buku','<p class="help-block">:message</p>') !!}
		</div>

		<div class="form-group{{ ($errors->has('penulis')) ? $errors->first('nama_buku') : '' }}">
		<input type="text" name="penulis" class="form-control" placeholder="Enter penulis Here" value="{{$book->penulis}}">
		{!! $errors->first('penulis','<p class="help-block">:message</p>') !!}
		</div>

		<div class="form-group{{ ($errors->has('isbn')) ? $errors->first('nama_buku') : '' }}">
		<input type="text" name="isbn" class="form-control" placeholder="Enter isbn Here" value="{{$book->isbn}}">
		{!! $errors->first('isbn','<p class="help-block">:message</p>') !!}
		</div>

		<div class="form-group">
		<input type="submit" class="btn btn-primary" value="save">
		</div>



		</form>
		

</div>

		@stop