@extends('master')
	@section('content')
	<div class="row">
	<div class="col-md-12">
	<h2>Daftar Kamar</h2>
	</div>
	</div>





	<div class="row">
		<table class="table table-striped">
		<tr>
		<th>No.</th>
		<th>Jenis Kamar</th>
		<th>Harga</th>
		<th>Jumlah Kamar</th>
		<th>Actions</th>
		</tr>

		<a href="{{route('kamar.create')}}" class="btn btn-info pull-right">Create New kamar</a><br>
		
		  <br><br><br>
     	<a href="{{route('receptionist')}}"><button type="button" class="btn btn-lg"><i class="glyphicon glyphicon-hand-left"></i></button></a><br>
		<?php $no=1; ?>

		@foreach($kamars as $kamar)

		<tr>
		<td>{{$no++}}</td>
		<td>{{$kamar->jenis_kamar}}</td>
		<td>{{$kamar->harga_kamar}}</td>
		<td>{{$kamar->jumlah_kamar}}</td>
		<td>
		<form class="" action="{{route('kamar.destroy', $kamar->id)}}" method="post">
		<input type="hidden" name="_method" value="delete">
		<input type="hidden" name="_token" value="{{ csrf_token() }}">
		<a href="{{route('kamar.edit',$kamar->id)}}" class="btn btn-primary">Edit</a>
		
		
		

		<input type="submit" class="btn btn-danger" onclick="return confirm('Are you sure to delete this data');" name="name" value="delete">
		</form>
		</td>

		</tr>

		@endforeach

		</table>
		</div>



	@stop