Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Ridwan Hidayat
go-wisata
Commits
e4d342d5
Commit
e4d342d5
authored
3 years ago
by
dindarestika
Browse files
Options
Download
Email Patches
Plain Diff
dashboard admin
parent
6f642e89
main
ridwan
salsabilifee
No related merge requests found
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
app/Http/Controllers/DashboardController.php
+26
-3
app/Http/Controllers/DashboardController.php
public/images/Mx79N1KfHMq7dgCaou3PVMRjH1xIJ1ixteQ7NB1H.jpg
+0
-0
public/images/Mx79N1KfHMq7dgCaou3PVMRjH1xIJ1ixteQ7NB1H.jpg
public/images/RpdAWMxYygOx6wYCbYsU8JhHhYd9E7ljYY5oqixn.jpg
+0
-0
public/images/RpdAWMxYygOx6wYCbYsU8JhHhYd9E7ljYY5oqixn.jpg
public/images/mYPkiQnjHBdwQcMYgUQrWadQGCTkaP3JfZvOe8bZ.jpg
+0
-0
public/images/mYPkiQnjHBdwQcMYgUQrWadQGCTkaP3JfZvOe8bZ.jpg
resources/views/admin/booking/check.blade.php
+2
-7
resources/views/admin/booking/check.blade.php
resources/views/admin/booking/halaman_bookingtempatsewa.blade.php
+2
-2
...s/views/admin/booking/halaman_bookingtempatsewa.blade.php
resources/views/admin/dashboard/event_sewatempat.blade.php
+263
-7
resources/views/admin/dashboard/event_sewatempat.blade.php
resources/views/admin/dashboard/penginapan.blade.php
+472
-455
resources/views/admin/dashboard/penginapan.blade.php
resources/views/admin/layouts2/master.blade.php
+0
-7
resources/views/admin/layouts2/master.blade.php
with
765 additions
and
481 deletions
+765
-481
app/Http/Controllers/DashboardController.php
View file @
e4d342d5
...
...
@@ -3,8 +3,9 @@
namespace
App\Http\Controllers
;
use
App\Models\Detail_transaksi
;
use
App\Models\Event
;
use
App\Models\Tempat
;
use
App\Models\TempatSewa
;
use
Illuminate\Http\Request
;
use
App\Models\Tiket
;
use
Auth
;
...
...
@@ -160,9 +161,31 @@ class DashboardController extends Controller
return
view
(
'admin.dashboard.desa'
,
compact
(
'tempattt'
,
'tempatt'
,
'tempat'
,
'users'
,
'datee'
));
}
if
(
Auth
::
user
()
->
role
->
name
==
'event & sewa tempat'
)
{
$tempat
=
Tempat
::
where
(
'user_id'
,
Auth
::
user
()
->
petugas_id
)
->
where
(
'status'
,
'1'
)
->
first
();
if
(
$tempat
==
null
)
{
return
view
(
'error'
);
}
$tempatt
=
Tempat
::
where
(
'user_id'
,
Auth
::
user
()
->
petugas_id
)
->
where
(
'status'
,
'1'
)
->
first
();
$induk_id
=
$tempatt
->
induk_id
;
$tempattt
=
Tempat
::
where
(
'id'
,
$induk_id
)
->
where
(
'status'
,
'1'
)
->
first
();
$event
=
Event
::
count
();
$tempat_sewa
=
TempatSewa
::
count
();
$users
=
Detail_transaksi
::
select
(
\
DB
::
raw
(
"COUNT(*) as count"
))
->
where
(
'tempat_id'
,
$tempatt
->
id
)
->
whereYear
(
'tanggal_a'
,
date
(
'Y'
))
->
groupBy
(
\
DB
::
raw
(
"Day(tanggal_a)"
))
->
pluck
(
'count'
);
$isi
=
[];
foreach
(
$users
as
$atas
)
{
$isi
[]
=
$atas
;
}
$datee
=
Detail_transaksi
::
select
(
'tanggal_a'
)
->
where
(
'tempat_id'
,
$tempatt
->
id
)
->
whereYear
(
'tanggal_a'
,
date
(
'Y'
))
->
groupBy
(
'tanggal_a'
)
->
pluck
(
'tanggal_a'
);
return
view
(
'admin.dashboard.event_sewatempat'
);
return
view
(
'admin.dashboard.event_sewatempat'
,
compact
(
'tempattt'
,
'tempatt'
,
'tempat'
,
'event'
,
'tempat_sewa'
,
'users'
,
'datee'
));
}
if
(
Auth
::
user
()
->
role
->
name
==
'pelanggan'
)
{
return
redirect
(
'/'
);
...
...
This diff is collapsed.
Click to expand it.
public/images/Mx79N1KfHMq7dgCaou3PVMRjH1xIJ1ixteQ7NB1H.jpg
0 → 100644
View file @
e4d342d5
172 KB
This diff is collapsed.
Click to expand it.
public/images/RpdAWMxYygOx6wYCbYsU8JhHhYd9E7ljYY5oqixn.jpg
0 → 100644
View file @
e4d342d5
1.1 MB
This diff is collapsed.
Click to expand it.
public/images/mYPkiQnjHBdwQcMYgUQrWadQGCTkaP3JfZvOe8bZ.jpg
0 → 100644
View file @
e4d342d5
172 KB
This diff is collapsed.
Click to expand it.
resources/views/admin/booking/check.blade.php
View file @
e4d342d5
@
extends
(
'admin.layouts2.master'
)
@
section
(
'title'
,
'Check Event'
)
@
section
(
'content'
)
<
header
class
=
"mb-3"
>
<
a
href
=
"#"
class
=
"burger-btn d-block d-xl-none"
>
<
i
class
=
"bi bi-justify fs-3"
></
i
>
</
a
>
</
header
>
<
script
type
=
"text/javascript"
src
=
"https://rawgit.com/schmich/instascan-builds/master/instascan.min.js"
></
script
>
{{
--
<
script
type
=
"text/javascript"
src
=
"https://rawgit.com/schmich/instascan-builds/master/instascan.min.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"https://cdnjs.cloudflare.com/ajax/libs/vue/2.1.10/vue.min.js"
></
script
>
<
script
type
=
"text/javascript"
src
=
"https://cdnjs.cloudflare.com/ajax/libs/webrtc-adapter/3.3.3/adapter.min.js"
>
<
script
type
=
"text/javascript"
src
=
"https://cdnjs.cloudflare.com/ajax/libs/webrtc-adapter/3.3.3/adapter.min.js"
>
--
}}
</
script
>
<
link
rel
=
"stylesheet"
href
=
"{{ asset('assets/css/toastr.min.css') }}"
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/admin/booking/halaman_bookingtempatsewa.blade.php
View file @
e4d342d5
...
...
@@ -117,7 +117,7 @@
<
div
class
=
"row"
id
=
"table-hover-row"
>
<
div
class
=
"col-12"
>
<
div
class
=
"card"
>
<
div
class
=
"card-header"
>
{{
--
<
div
class
=
"card-header"
>
<
nav
aria
-
label
=
"breadcrumb"
>
<
ol
class
=
"breadcrumb breadcrumb-right"
>
<
li
class
=
"breadcrumb-item"
>
...
...
@@ -126,7 +126,7 @@
</
li
>
</
ol
>
</
nav
>
</
div
>
</
div
>
--
}}
<
div
class
=
"card-content"
>
<
div
class
=
"table-responsive"
>
<
table
class
=
"table table-lg table-hover"
id
=
"event"
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/admin/dashboard/event_sewatempat.blade.php
View file @
e4d342d5
@
extends
(
'admin.layouts2.master'
)
@
section
(
'title'
,
'Admin Event & Sewa Tempat'
)
@
section
(
'content'
)
<
link
rel
=
"stylesheet"
href
=
"{{ asset('assets/css/toastr.min.css') }}"
>
<
script
src
=
"{{ asset('js/jquery.min.js') }}"
></
script
>
...
...
@@ -11,12 +9,270 @@
@
foreach
(
$errors
->
all
()
as
$error
)
{
!!
Toastr
::
error
(
$error
,
'Error'
,
[
'options'
])
!!
}
@
endforeach
<
header
class
=
"mb-3"
>
<
a
href
=
"#"
class
=
"burger-btn d-block d-xl-none"
>
<
i
class
=
"bi bi-justify fs-3"
></
i
>
</
a
>
</
header
>
<
div
class
=
"page-heading"
>
<
h3
>
Statistics
Data
Event
dan
Tempat
Sewa
</
h3
>
</
div
>
<
div
class
=
"page-content"
>
<
section
class
=
"row"
>
<
div
class
=
"col-12 col-lg-12"
>
<
div
class
=
"row"
>
<
div
class
=
"col-6 col-lg-3 col-md-6"
>
<
a
href
=
"/review"
>
<
div
class
=
"card"
>
<
div
class
=
"card-body px-3 py-4-5"
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"stats-icon purple"
>
<
i
class
=
"fas fa-search"
></
i
>
</
div
>
</
div
>
<
div
class
=
"col-md-8"
>
<
h6
class
=
"text-muted font-semibold"
>
Penilaian
</
h6
>
<
h6
class
=
"font-extrabold mb-0"
>
Review
</
h6
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-6 col-lg-3 col-md-6"
>
<
a
href
=
"/rekapdata_ep"
>
<
div
class
=
"card"
>
<
div
class
=
"card-body px-3 py-4-5"
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"stats-icon green"
>
<
i
class
=
"far fa-calendar-alt"
></
i
>
</
div
>
</
div
>
<
div
class
=
"col-md-8"
>
<
h6
class
=
"text-muted font-semibold"
>
Rekap
Data
</
h6
>
<
h6
class
=
"font-extrabold mb-0"
>
Pesanan
</
h6
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-6 col-lg-3 col-md-6"
>
<
a
href
=
"/adminevent"
>
<
div
class
=
"card"
>
<
div
class
=
"card-body px-3 py-4-5"
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"stats-icon red"
>
<
i
class
=
"fas fa-child"
></
i
>
</
div
>
</
div
>
<
div
class
=
"col-md-8"
>
<
h6
class
=
"text-muted font-semibold"
>
Event
</
h6
>
<
h6
class
=
"font-extrabold mb-0"
>
{{
$event
}}
</
h6
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
div
>
<
div
class
=
"col-6 col-lg-3 col-md-6"
>
<
a
href
=
"/adminevent"
>
<
div
class
=
"card"
>
<
div
class
=
"card-body px-3 py-4-5"
>
<
div
class
=
"row"
>
<
div
class
=
"col-md-4"
>
<
div
class
=
"stats-icon blue"
>
<
i
class
=
"fas fa-home"
></
i
>
</
div
>
</
div
>
<
div
class
=
"col-md-8"
>
<
h6
class
=
"text-muted font-semibold"
>
Tempat
Sewa
</
h6
>
<
h6
class
=
"font-extrabold mb-0"
>
{{
$tempat_sewa
}}
</
h6
>
</
div
>
</
div
>
</
div
>
</
div
>
</
a
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-12 col-lg-6"
>
<
div
class
=
"card"
data
-
bs
-
toggle
=
"modal"
data
-
bs
-
target
=
"#default"
>
<
div
class
=
"card-body py-4 px-5"
>
<
div
class
=
"d-flex align-items-center"
>
<
div
class
=
"avatar avatar-xl"
>
<
img
alt
=
"Face 1"
class
=
"mr-3 rounded-circle"
width
=
"50"
src
=
"{{ asset('images') }}/{{ Auth::user()->image }}"
>
</
div
>
<
div
class
=
"ms-3 name"
>
<
h5
class
=
"font-bold"
>
{{
Auth
::
user
()
->
name
}}
</
h5
>
{{
--
<
a
href
=
"{{ route('password.request') }}"
>
<
button
class
=
"btn btn-outline-warning me-1 mb-1"
>
Lupa
Password
</
button
></
a
>
--
}}
</
div
>
</
div
>
</
div
>
</
div
>
</
div
>
<
div
class
=
"col-12 col-lg-6"
>
{{
--
<
a
href
=
"#"
>
--
}}
<
div
class
=
"card"
>
<
div
class
=
"card-body py-4 px-5"
>
<
div
class
=
"d-flex align-items-center"
>
<
div
class
=
"avatar avatar-xl"
>
<
img
alt
=
"Face 1"
class
=
"mr-3 rounded-circle"
width
=
"50"
src
=
"{{ asset('images') }}/{{
$tempat->image
}}"
>
</
div
>
<
div
class
=
"ms-3 name"
>
<
h5
>
{{
$tempat
->
name
}}
</
h5
>
</
div
>
</
div
>
</
div
>
</
div
>
{{
--
</
a
>
--
}}
</
section
>
</
div
>
<
div
class
=
"section-body"
>
<
div
class
=
"card"
>
<
div
class
=
"card-body"
>
<
div
id
=
"container"
></
div
>
</
div
>
</
div
>
</
div
>
<
script
src
=
"https://code.highcharts.com/highcharts.js"
></
script
>
<
script
src
=
"https://code.highcharts.com/highcharts.js"
></
script
>
<
script
src
=
"https://code.highcharts.com/modules/data.js"
></
script
>
<
script
src
=
"https://code.highcharts.com/modules/series-label.js"
></
script
>
<
script
src
=
"https://code.highcharts.com/modules/exporting.js"
></
script
>
<
script
src
=
"https://code.highcharts.com/modules/export-data.js"
></
script
>
<
script
src
=
"https://code.highcharts.com/modules/accessibility.js"
></
script
>
<!--
Additional
files
for
the
Highslide
popup
effect
-->
<
script
src
=
"https://www.highcharts.com/samples/static/highslide-full.min.js"
></
script
>
<
script
src
=
"https://www.highcharts.com/samples/static/highslide.config.js"
charset
=
"utf-8"
></
script
>
<
script
src
=
"https://code.highcharts.com/highcharts.js"
></
script
>
<
script
type
=
"text/javascript"
>
var
users
=
<?
php
echo
json_encode
(
$users
);
?>
;
Highcharts.chart('container', {
title: {
text: {!! json_encode($tempatt->name) !!}
},
subtitle: {
text: ''
},
xAxis: {
categories: {!! json_encode($datee) !!}
},
yAxis: {
title: {
text: ''
}
},
legend: {
layout: 'vertical',
align: 'right',
verticalAlign: 'middle'
},
plotOptions: {
series: {
allowPointSelect: true
}
},
series: [{
name: 'Pelanggan Event
&
Sewa Tempat',
data: users
}],
responsive: {
rules: [{
condition: {
maxWidth: 500
},
chartOptions: {
legend: {
layout: 'horizontal',
align: 'center',
verticalAlign: 'bottom'
}
}
}]
},
legend: {
align: 'left',
verticalAlign: 'top',
borderWidth: 0
},
tooltip: {
shared: true,
crosshairs: true
},
plotOptions: {
// DATA
series: {
cursor: 'pointer',
point: {
events: {
click: function(e) {
hs.htmlExpand(null, {
pageOrigin: {
x: e.pageX || e.clientX,
y: e.pageY || e.clientY
},
headingText: this.series.name,
maincontentText: Highcharts.dateFormat(this.x) + ':
<br/>
' +
this.y + ' antrian',
width: 200
});
}
}
},
marker: {
lineWidth: 1
}
}
},
});
</script>
<canvas
id=
"myChart"
width=
"400"
height=
"400"
></canvas>
<script>
var
ctx
=
document
.
getElementById
(
'
myChart
'
).
getContext
(
'
2d
'
);
var
myChart
=
new
Chart
(
ctx
,
{
type
:
'
bar
'
,
data
:
{
labels
:
[
'
Red
'
,
'
Blue
'
,
'
Yellow
'
,
'
Green
'
,
'
Purple
'
,
'
Orange
'
],
datasets
:
[{
label
:
'
# of Votes
'
,
data
:
[
12
,
19
,
3
,
5
,
2
,
3
],
backgroundColor
:
[
'
rgba(255, 99, 132, 0.2)
'
,
'
rgba(54, 162, 235, 0.2)
'
,
'
rgba(255, 206, 86, 0.2)
'
,
'
rgba(75, 192, 192, 0.2)
'
,
'
rgba(153, 102, 255, 0.2)
'
,
'
rgba(255, 159, 64, 0.2)
'
],
borderColor
:
[
'
rgba(255, 99, 132, 1)
'
,
'
rgba(54, 162, 235, 1)
'
,
'
rgba(255, 206, 86, 1)
'
,
'
rgba(75, 192, 192, 1)
'
,
'
rgba(153, 102, 255, 1)
'
,
'
rgba(255, 159, 64, 1)
'
],
borderWidth
:
1
}]
},
options
:
{
scales
:
{
yAxes
:
[{
ticks
:
{
beginAtZero
:
true
}
}]
}
}
});
</script>
@endsection
This diff is collapsed.
Click to expand it.
resources/views/admin/dashboard/penginapan.blade.php
View file @
e4d342d5
This diff is collapsed.
Click to expand it.
resources/views/admin/layouts2/master.blade.php
View file @
e4d342d5
...
...
@@ -14,9 +14,6 @@
<link
rel=
"stylesheet"
href=
"{{ asset('assets/css/bootstrap.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('assets/vendors/iconly/bold.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('assets/vendors/perfect-scrollbar/perfect-scrollbar.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('assets/vendors/bootstrap-icons/bootstrap-icons.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('assets/css/app.css') }}"
>
...
...
@@ -552,10 +549,6 @@
</div>
<script
src=
"{{ asset('assets/vendors/perfect-scrollbar/perfect-scrollbar.min.js') }}"
></script>
<script
src=
"{{ asset('assets/js/bootstrap.bundle.min.js') }}"
></script>
{{--
<script
src=
"{{asset('assets/vendors/apexcharts/apexcharts.js')}}"
></script>
<script
src=
"{{asset('assets/js/pages/dashboard.jss')}}"
></script>
--}}
<script
src=
"{{ asset('assets/js/main.js') }}"
></script>
</body>
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help