Commit 987b627e by Juliper
parents 72fa80b2 c34c0fc5
......@@ -338,7 +338,7 @@ class AdminController extends Controller
}
return view('adminlte::layouts.admin.addOwner')->with('message', 'User berhasil ditambah');
return redirect('listowner')->with('message', 'User berhasil ditambah');
}
//Menampilkan Daftar RequestHomestay
......
......@@ -10,23 +10,17 @@
</div>
<div class="box-body">
<div id="app">
@if(count($errors))
<div class="alert alert-danger">
<strong>Whoops!</strong> There were some problems with your input.
<br/>
<ul>
@foreach($errors->all() as $error)
<li>{{ $error }}</li>
@endforeach
</ul>
</div>
@if(session()->has('message'))
<div class="alert alert-info">
{{session()->get('message')}}
</div>
@endif
@if(!empty($success))
<div class="alert alert-success">
{{$succes}}
</div>
@endif
<div class="register-box-body ">
<form action="{{ url('admin') }}" method="post">
......
......@@ -18,6 +18,18 @@
</ul>
</div>
@endif
@if(session()->has('message'))
<div class="alert alert-info">
{{session()->get('message')}}
</div>
@endif
@if(!empty($success))
<div class="alert alert-success">
{{$succes}}
</div>
@endif
</div>
<div class="box-body">
<table id="example2" class="table table-bordered table-hover">
......
......@@ -7,7 +7,7 @@
@section('main-content')
<div class="box box-warning">
<div class="box-header with-border">
<h3 class="box-title"> DAFTAR PESANAN </h3>
<h3 class="box-title"> DAFTAR PELANGGAN </h3>
@if(Session::has('alert-success'))
<div class="alert alert-success">
{{ Session::get('alert-success') }}
......@@ -30,8 +30,8 @@
<table class="table table-striped">
<tr>
<th>Nama Pelanggan</th>
<th>Tanggal Mulai</th>
<th>Tanggal Berakhir</th>
<th>Tanggal Check-in</th>
<th>Tanggal Check-out</th>
<th>Jumlah Kamar</th>
<th></th>
</tr>
......
......@@ -52,11 +52,11 @@
</span></a>
<ul class="treeview-menu" style="display : none;">
<li><a href="{{url('pesanan')}}"><i class='fa fa-list'></i> <span>Daftar Transaksi</span></a></li>
<li><a href="{{url('daftarBooking')}}"><i class='fa fa-list'></i> <span>Daftar Pesanan</span></a></li>
<li><a href="{{url('daftarBooking')}}"><i class='fa fa-list'></i> <span>Daftar Pelanggan</span></a></li>
<li><a href="{{url('AddBook')}}"><i class='fa fa-plus'></i> <span>Tambah Pesanan Manual</span></a></li>
</ul>
</li>
<li><a href="{{url('record')}}"><i class='fa fa-plus'></i> <span>Laporan</span></a></li>
<li><a href="{{url('record')}}"><i class='fa fa-plus'></i> <span>LAPORAN</span></a></li>
@endif
</ul><!-- /.sidebar-menu -->
</section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment