Commit 987b627e by Juliper
parents 72fa80b2 c34c0fc5
...@@ -338,7 +338,7 @@ class AdminController extends Controller ...@@ -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 //Menampilkan Daftar RequestHomestay
......
...@@ -10,23 +10,17 @@ ...@@ -10,23 +10,17 @@
</div> </div>
<div class="box-body"> <div class="box-body">
<div id="app"> <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')) @if(session()->has('message'))
<div class="alert alert-info"> <div class="alert alert-info">
{{session()->get('message')}} {{session()->get('message')}}
</div> </div>
@endif @endif
@if(!empty($success))
<div class="alert alert-success">
{{$succes}}
</div>
@endif @endif
<div class="register-box-body "> <div class="register-box-body ">
<form action="{{ url('admin') }}" method="post"> <form action="{{ url('admin') }}" method="post">
......
...@@ -18,6 +18,18 @@ ...@@ -18,6 +18,18 @@
</ul> </ul>
</div> </div>
@endif @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>
<div class="box-body"> <div class="box-body">
<table id="example2" class="table table-bordered table-hover"> <table id="example2" class="table table-bordered table-hover">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
@section('main-content') @section('main-content')
<div class="box box-warning"> <div class="box box-warning">
<div class="box-header with-border"> <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')) @if(Session::has('alert-success'))
<div class="alert alert-success"> <div class="alert alert-success">
{{ Session::get('alert-success') }} {{ Session::get('alert-success') }}
...@@ -30,8 +30,8 @@ ...@@ -30,8 +30,8 @@
<table class="table table-striped"> <table class="table table-striped">
<tr> <tr>
<th>Nama Pelanggan</th> <th>Nama Pelanggan</th>
<th>Tanggal Mulai</th> <th>Tanggal Check-in</th>
<th>Tanggal Berakhir</th> <th>Tanggal Check-out</th>
<th>Jumlah Kamar</th> <th>Jumlah Kamar</th>
<th></th> <th></th>
</tr> </tr>
......
...@@ -52,11 +52,11 @@ ...@@ -52,11 +52,11 @@
</span></a> </span></a>
<ul class="treeview-menu" style="display : none;"> <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('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> <li><a href="{{url('AddBook')}}"><i class='fa fa-plus'></i> <span>Tambah Pesanan Manual</span></a></li>
</ul> </ul>
</li> </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 @endif
</ul><!-- /.sidebar-menu --> </ul><!-- /.sidebar-menu -->
</section> </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