Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
pa2d4ti06
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Juliper
pa2d4ti06
Commits
5cbcac3c
Commit
5cbcac3c
authored
Jun 10, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
d2dc83c4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
6 deletions
+30
-6
Handler.php
app/Exceptions/Handler.php
+23
-1
AdminController.php
app/Http/Controllers/AdminController.php
+4
-2
CustomerController.php
app/Http/Controllers/CustomerController.php
+2
-2
Homestay.blade.php
...es/views/vendor/adminlte/layouts/pages/Homestay.blade.php
+1
-1
No files found.
app/Exceptions/Handler.php
View file @
5cbcac3c
...
...
@@ -44,7 +44,29 @@ class Handler extends ExceptionHandler
*/
public
function
render
(
$request
,
Exception
$exception
)
{
return
parent
::
render
(
$request
,
$exception
);
if
(
$this
->
isHttpException
(
$exception
))
{
switch
(
$exception
->
getStatusCode
())
{
// not found
case
404
:
return
redirect
()
->
guest
(
'home'
);
break
;
// internal error
case
'500'
:
return
redirect
()
->
guest
(
'home'
);
break
;
default
:
return
$this
->
renderHttpException
(
$exception
);
break
;
}
}
else
{
return
parent
::
render
(
$request
,
$exception
);
}
}
/**
...
...
app/Http/Controllers/AdminController.php
View file @
5cbcac3c
...
...
@@ -8,6 +8,7 @@ use App\RequestHomestay;
use
App\Room
;
use
Illuminate\Http\Request
;
use
App\User
;
use
League\Flysystem\Exception
;
use
Validator
;
use
App\Http\Controllers\Controller
;
use
Illuminate\Foundation\Auth\RegistersUsers
;
...
...
@@ -41,12 +42,13 @@ class AdminController extends Controller
//Mengakses Daftar Owner
public
function
listOwner
(){
$count
=
User
::
all
()
->
where
(
'role'
,
"Owner"
)
->
count
();
$data
=
User
::
all
()
->
where
(
'role'
,
"Owner"
);
//dd($data);
//dd($data);
return
view
(
'adminlte::layouts.admin.listOwner'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$count
);
}
//Menambah owner
...
...
app/Http/Controllers/CustomerController.php
View file @
5cbcac3c
...
...
@@ -48,10 +48,10 @@ class CustomerController extends Controller
//Pemberian/Pengiriman Feedback
public
function
sendFeedback
(
Request
$request
,
$id
){
if
(
Auth
::
guest
()){
/*
if(Auth::guest()){
dd("maaf nggak bisa bang");
}
*/
$dataPelanggan
=
DB
::
table
(
'pelanggan'
)
->
select
(
'pelanggan.id'
)
->
where
(
'pelanggan.id_akun'
,
'='
,
Auth
::
user
()
->
id
)
...
...
resources/views/vendor/adminlte/layouts/pages/Homestay.blade.php
View file @
5cbcac3c
...
...
@@ -45,7 +45,7 @@
<input type="
text
" class="
text
wow
agileits
w3layouts
" name="
jumlah_hari
" placeholder="
Lama
Menginap
" style="
background
-
color
:
white
;
color
:
black
">
</div>
<div class="
col
-
md
-
2
col
-
sm
-
2
agileits
w3layouts
contact
-
grid
contact
-
grid
-
2
">
<input type="
text
" class="
text
wow
agileits
w3layouts
" name="
jumlah_kamar
" placeholder="
Jumlah
Kamar
" style="
background
-
color
:
white
;
color
:
black
">
<input type="
number
" min="
0
" class="
text
wow
agileits
w3layouts
" name="
jumlah_kamar
" placeholder="
Jumlah
Kamar
" style="
background
-
color
:
white
;
color
:
black
">
</div>
<div class="
book
">
<input type="
submit
" class="
more_btn
wow
agileits
w3layouts
" value="
Book
Now
">
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment