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
489733a5
Commit
489733a5
authored
May 17, 2017
by
Juliper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
admin will be done guys
parent
e3d483f7
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
17 deletions
+21
-17
AdminController.php
app/Http/Controllers/AdminController.php
+9
-0
CustomerController.php
app/Http/Controllers/CustomerController.php
+1
-0
OwnerController.php
app/Http/Controllers/OwnerController.php
+0
-9
dataPemesanan.blade.php
...ews/vendor/adminlte/layouts/admin/dataPemesanan.blade.php
+10
-7
sidebar.blade.php
.../views/vendor/adminlte/layouts/partials/sidebar.blade.php
+1
-1
No files found.
app/Http/Controllers/AdminController.php
View file @
489733a5
...
...
@@ -3,6 +3,7 @@
namespace
App\Http\Controllers
;
use
App\Homestay
;
use
App\ListBook
;
use
App\RequestHomestay
;
use
App\Room
;
use
Illuminate\Http\Request
;
...
...
@@ -24,6 +25,14 @@ class AdminController extends Controller
public
function
listPesanan
(){
$data
=
DB
::
table
(
'homestay'
)
->
join
(
'daftar_book'
,
'homestay.id'
,
'='
,
'daftar_book.homestay'
)
->
select
(
'daftar_book.*'
,
'homestay.namaHomestay'
,
'homestay.owner'
)
->
get
();
//dd($data);
return
view
(
'adminlte::layouts.admin.dataPemesanan'
)
->
with
(
'data'
,
$data
);
}
public
function
listOwner
(){
...
...
app/Http/Controllers/CustomerController.php
View file @
489733a5
...
...
@@ -199,6 +199,7 @@ class CustomerController extends Controller
$lb
->
homestay
=
$request
[
'id'
];
$lb
->
nama_pemesan
=
$data2
[
0
]
->
nama
;
$lb
->
jumlah_kamar
=
$request
[
'jumlah_kamar'
];
$lb
->
tanggal_mulai
=
$request
[
'tanggal'
]
;
$lb
->
tanggal_berakhir
=
$baru
;
...
...
app/Http/Controllers/OwnerController.php
View file @
489733a5
...
...
@@ -70,7 +70,6 @@ class OwnerController extends Controller
->
get
();
$data
=
DB
::
table
(
'homestay'
)
//->join('transaksi','transaksi.id_homestay','=','homestay.id')
->
join
(
'pemilikhomestay'
,
'homestay.idPemilik'
,
'='
,
'pemilikhomestay.id'
)
->
join
(
'transaksi'
,
'homestay.id'
,
'='
,
'transaksi.id_homestay'
)
->
join
(
'pelanggan'
,
'transaksi.id_pelanggan'
,
'='
,
'pelanggan.id'
)
...
...
@@ -78,7 +77,6 @@ class OwnerController extends Controller
->
where
(
'homestay.idPemilik'
,
'='
,
$dataPel
[
0
]
->
id
)
->
get
();
//dd("masuk agan",$data,$data->count());
return
view
(
'adminlte::layouts.owner.listPesanan'
)
->
with
(
'data'
,
$data
)
->
with
(
'count'
,
$data
->
count
());
}
...
...
@@ -87,11 +85,6 @@ class OwnerController extends Controller
}
public
function
storeRequest
(
Request
$request
){
/*$data = DB::table('pemilikhomestay')
->join('pengajuan_homestay','pemilikhomestay.id','=','pengajuan_homestay.idPemilikHomestay')
->select('pemilikhomestay.nama','pengajuan_homestay.*')
->get();
*/
$idPemilik
=
DB
::
table
(
'users'
)
->
join
(
'pemilikhomestay'
,
'users.id'
,
'='
,
'pemilikhomestay.id_Akun'
)
...
...
@@ -99,7 +92,6 @@ class OwnerController extends Controller
->
where
(
'users.id'
,
'='
,
Auth
::
user
()
->
id
)
->
get
();
//dd($request['id_kategoriFasiltas']);
$data
=
new
RequestFasilitas
();
...
...
@@ -111,7 +103,6 @@ class OwnerController extends Controller
$data
->
save
();
//dd("Berhasil Gan");
}
public
function
pengajuan
(){
...
...
resources/views/vendor/adminlte/layouts/admin/dataPemesanan.blade.php
View file @
489733a5
...
...
@@ -38,19 +38,22 @@
<tr>
<th>Nama Homestay</th>
<th>Nama Pemilik Homstay</th>
<th>Nama Pemesan</th>
<th>Tanggal Mulai</th>
<th>Tanggal Berakhir</th>
<th>Jumlah penginap</th>
<th>Jumlah Kamar yang dipesan</th>
</tr>
@foreach(
$data
as
$a
)
<tr>
<td>Hom Staywithme</td>
<td>Palti Sinaga</td>
<td>Dari sekarang</td>
<td>sampai sekarang</td>
<td>Banyak </td>
<td>
{
{$a->namaHomestay}
}
</td>
<td>
{
{$a->owner}
}
</td>
<td>
{
{$a->nama_pemesan}
}
</td>
<td>
{
{$a->tanggal_mulai}
}
</td>
<td>
{
{$a->tanggal_berakhir}
}
</td>
<td>
{
{$a->jumlah_kamar}
}
</td>
</tr>
@endforeach
</table>
...
...
resources/views/vendor/adminlte/layouts/partials/sidebar.blade.php
View file @
489733a5
...
...
@@ -29,7 +29,7 @@
<li><a
href=
"{{url('requestFasilitas')}}"
><i
class=
'fa fa-home'
></i>
<span>
Acc Request Fasilitas
</span></a></li>
<li><a
href=
"{{url('admin/create')}}"
><i
class=
'fa fa-plus'
></i>
<span>
Add Owner
</span></a></li>
<li><a
href=
"{{url('requestHomestay')}}"
><i
class=
'fa fa-list'
></i>
<span>
Acc Pengajuan Homestay
</span></a></li>
<li><a
href=
"{{url('
datap
emesanan')}}"
><i
class=
'fa fa-list'
></i>
<span>
Melihat Data Pemesanan
</span></a></li>
<li><a
href=
"{{url('
listP
emesanan')}}"
><i
class=
'fa fa-list'
></i>
<span>
Melihat Data Pemesanan
</span></a></li>
<li><a
href=
"{{url('listowner')}}"
><i
class=
'fa fa-list'
></i>
<span>
Melihat Daftar Owner
</span></a></li>
@elseif(Auth::user()->role=="Owner")
...
...
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