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
0900e2a0
Commit
0900e2a0
authored
2 years ago
by
Ridwan Hidayat
Browse files
Options
Download
Email Patches
Plain Diff
fix landing
parent
6bbea2af
ridwan
No related merge requests found
Pipeline
#1829
passed with stage
in 16 seconds
Changes
12
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
app/Http/Controllers/AdminController.php
+2
-0
app/Http/Controllers/AdminController.php
app/Http/Controllers/FrontendController.php
+6
-2
app/Http/Controllers/FrontendController.php
app/Http/Controllers/TempatController.php
+0
-2
app/Http/Controllers/TempatController.php
public/images/2leUcf4xY8IxN7crzVzdIUys4P9dyX3V4cXGSvM7.jpg
+0
-0
public/images/2leUcf4xY8IxN7crzVzdIUys4P9dyX3V4cXGSvM7.jpg
public/images/Abe7FX25XW5k1scac2pdGvE1Kq5I7Fbq69DvudK6.jpg
+0
-0
public/images/Abe7FX25XW5k1scac2pdGvE1Kq5I7Fbq69DvudK6.jpg
public/images/CzeZIEBtmoV0oYB7Zr4s8Fy9hH8fUAqq73o0erBs.jpg
+0
-0
public/images/CzeZIEBtmoV0oYB7Zr4s8Fy9hH8fUAqq73o0erBs.jpg
public/videos/qWDsfDmEEZyNrNFh0BMlHUE7iush1VryYyTbPmJQ.mp4
+0
-0
public/videos/qWDsfDmEEZyNrNFh0BMlHUE7iush1VryYyTbPmJQ.mp4
resources/views/FrontEnd/showtempat.blade.php
+3
-32
resources/views/FrontEnd/showtempat.blade.php
resources/views/FrontEnd/showtempatd.blade.php
+152
-61
resources/views/FrontEnd/showtempatd.blade.php
resources/views/FrontEnd/welcome.blade.php
+1
-1
resources/views/FrontEnd/welcome.blade.php
resources/views/bayar_update.blade.php
+1
-1
resources/views/bayar_update.blade.php
resources/views/explore/desa_wisata.blade.php
+1
-1
resources/views/explore/desa_wisata.blade.php
with
166 additions
and
100 deletions
+166
-100
app/Http/Controllers/AdminController.php
View file @
0900e2a0
...
...
@@ -61,12 +61,14 @@ class AdminController extends Controller
$data
=
$request
->
all
();
// dd($data);
// return $data;
$name
=
(
new
User
)
->
userAvatar
(
$request
);
$data
[
'image'
]
=
$name
;
$data
[
'password'
]
=
bcrypt
(
$request
->
password
);
User
::
create
(
$data
);
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/FrontendController.php
View file @
0900e2a0
...
...
@@ -234,14 +234,18 @@ class FrontendController extends Controller
$kuliner
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'kategori'
,
'kuliner'
)
->
get
();
$penginapan
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'kategori'
,
'penginapan'
)
->
get
();
$ez
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'status'
,
1
)
->
get
();
$showWisata
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'status'
,
1
)
->
where
(
'kategori'
,
'wisata'
)
->
get
();
$showPenginapan
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'status'
,
1
)
->
where
(
'kategori'
,
'penginapan'
)
->
get
();
$showKuliner
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'status'
,
1
)
->
where
(
'kategori'
,
'kuliner'
)
->
get
();
$showEvent
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'status'
,
1
)
->
where
(
'kategori'
,
'event & sewa tempat'
)
->
get
();
$camp
=
Camp
::
where
(
'tempat_id'
,
$tempatini
)
->
where
(
'status'
,
1
)
->
where
(
'kategori'
,
'alat'
)
->
get
();
// dd($camp);
$camp1
=
Camp
::
where
(
'tempat_id'
,
$tempatini
)
->
where
(
'status'
,
1
)
->
get
();
$nama
=
$tempat2
[
'name'
];
// Tempat Kuliner makanan
$makanan
=
Kuliner
::
where
(
'tempat_id'
,
$tempat
->
id
)
->
where
(
'status'
,
1
)
->
get
();
return
view
(
'FrontEnd/showtempatd'
,
compact
(
'setting'
,
'ez'
,
'tempat'
,
'tempat2'
,
'nama'
,
'wahana'
,
'kuliner'
,
'makanan'
,
'camp'
,
'camp1'
,
'penginapan'
));
return
view
(
'FrontEnd/showtempatd'
,
compact
(
'setting'
,
'tempat'
,
'tempat2'
,
'nama'
,
'wahana'
,
'kuliner'
,
'makanan'
,
'camp'
,
'camp1'
,
'penginapan'
,
'showWisata'
,
'showKuliner'
,
'showPenginapan'
,
'showEvent'
));
}
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/TempatController.php
View file @
0900e2a0
...
...
@@ -141,8 +141,6 @@ class TempatController extends Controller
$slug
=
Str
::
slug
(
$request
->
name
,
'-'
);
$data
[
'slug'
]
=
$slug
;
$tempatdesa
=
Tempat
::
where
(
'user_id'
,
Auth
::
user
()
->
petugas_id
)
->
where
(
'status'
,
'1'
)
->
first
();
$data
[
'induk_id'
]
=
$tempatdesa
->
id
;
...
...
This diff is collapsed.
Click to expand it.
public/images/2leUcf4xY8IxN7crzVzdIUys4P9dyX3V4cXGSvM7.jpg
0 → 100644
View file @
0900e2a0
269 KB
This diff is collapsed.
Click to expand it.
public/images/Abe7FX25XW5k1scac2pdGvE1Kq5I7Fbq69DvudK6.jpg
0 → 100644
View file @
0900e2a0
1.41 MB
This diff is collapsed.
Click to expand it.
public/images/CzeZIEBtmoV0oYB7Zr4s8Fy9hH8fUAqq73o0erBs.jpg
0 → 100644
View file @
0900e2a0
269 KB
This diff is collapsed.
Click to expand it.
public/videos/qWDsfDmEEZyNrNFh0BMlHUE7iush1VryYyTbPmJQ.mp4
0 → 100644
View file @
0900e2a0
File added
This diff is collapsed.
Click to expand it.
resources/views/FrontEnd/showtempat.blade.php
View file @
0900e2a0
...
...
@@ -180,35 +180,9 @@
</section>
@if (count($camp1) > 0)
<!--==================== ABOUT ====================-->
<section
class=
"about section"
id=
"camp"
>
<div
class=
"about__container container grid"
>
<div
class=
"about__data"
>
<h2
class=
"section__title about__title"
>
Di {{ $tempat2->name }}
<br>
Ada Camping Ground lho
</h2>
<p
class=
"about__description"
>
Langsung saja tekan tombol mau camping
</p>
<a
href=
"{{ url('/mau/camping/' . $tempat2->id) }}"
class=
"button"
>
Mau Camping !
</a>
</div>
<div
class=
"about__img"
>
{{--
<div
class=
"about__img-overlay"
>
<img
src=
"{{ asset('./vendor/depan/assets/img/camping.jpg') }}"
alt=
""
class=
"about__img-one"
>
</div>
--}}
<div
class=
"about__img-overlay"
>
<img
src=
"{{ asset('vendor/depan/assets/img/camping.jpg') }}"
alt=
""
class=
"about__img-two"
>
</div>
</div>
</div>
</section>
@endif
<!--====================
DISCOVER
====================-->
<!--====================
Wahana
====================-->
@if (count($wahana) > 0)
<section
class=
"discover section"
id=
"wahana"
>
<h2
class=
"section__title"
>
Wahana
<br>
Yang Tersedia
</h2>
...
...
@@ -217,10 +191,7 @@
<div
class=
"swiper-wrapper"
>
@foreach ($wahana as $key => $whn)
<!--==================== DISCOVER 1 ====================-->
{{-- @if ($tempat2->id != $whn->tempat_id) --}}
<div
class=
"discover__card swiper-slide"
>
<div
class=
"discover__card swiper-slide"
style=
"width: 60%"
>
<img
src=
"{{ asset('images') }}/{{ $whn->image }}"
alt=
""
class=
"discover__img"
>
<div
class=
"discover__data"
>
...
...
This diff is collapsed.
Click to expand it.
resources/views/FrontEnd/showtempatd.blade.php
View file @
0900e2a0
...
...
@@ -105,9 +105,6 @@
@if (count($camp1) > 0)
<a
href=
"#camp"
class=
"button"
>
Camping
</a>
@endif
@if (count($ez) > 0)
{{--
<a
href=
"#place"
class=
"button"
>
Disekitar
</a>
--}}
@endif
</div>
<div
class=
"home__social"
>
...
...
@@ -150,12 +147,6 @@
Pesan Tiket
</button>
</h5>
</form>
@endif
<div
class=
"experience__container container grid"
>
...
...
@@ -213,69 +204,48 @@
<!-- </div>-->
<!--</section>-->
<!--Tempat-->
@if (count($showWisata) > 0)
<section
class=
"place section"
id=
"place"
>
<h2
class=
"section__title"
>
Wisata {{ $tempat->name }}
</h2>
<div
class=
"place__container container grid"
>
@foreach ($showWisata as $key => $tempat2)
<!--==================== PLACES CARD 1 ====================-->
<div
class=
"place__card"
>
<img
src=
"{{ asset('images') }}/{{ $tempat2->image }}"
alt=
""
class=
"place__img"
>
<div
class=
"place__content"
>
<span
class=
"place__rating"
>
<i
class=
"ri-star-line place__rating-icon"
></i>
<!--<span class="place__rating-number">4,8</span>-->
</span>
<div
class=
"place__data"
>
<h3
class=
"place__title"
>
{{ $tempat2->name }}
</h3>
{{--
<span
class=
"place__subtitle"
>
{{ $tempat2->kategori }}
</span>
--}}
<span
class=
"place__price"
>
{{ $tempat2->kategori }}
</span>
</div>
</div>
<a
href=
"{{ url('./' . $tempat2->kategori . '/' . $tempat2->slug) }}"
>
<button
class=
"button button--flex place__button"
>
<i
class=
"ri-arrow-right-line"
></i>
</button>
</a>
@if (!$tempat->video == null)
<!--==================== VIDEO ====================-->
<section
class=
"video section"
id=
"video"
>
<h2
class=
"section__title"
>
Video Tour
</h2>
<div
class=
"video__container container"
>
<p
class=
"video__description"
>
Cari tahu lebih lanjut dengan video kami ini dan cari
tempat yang menyenangkan untuk Anda dan keluarga.
</p>
<div
class=
"video__content"
>
<video
id=
"video-file"
>
{{--
<source
src=
"https://www.youtube.com/watch?v=zJNIFyVAmQw"
type=
"video/mp4"
>
--}}
<source
src=
"{{ asset('videos') }}/{{ $tempat->video }}"
type=
"video/mp4"
>
{{--
<source
src=
"{{ asset('./vendor/depan/assets/video/video.mp4') }}"
type=
"video/mp4"
>
--}}
</video>
<button
class=
"button button--flex video__button"
id=
"video-button"
>
<i
class=
"ri-play-line video__button-icon"
id=
"video-icon"
></i>
</button>
</div>
</div>
</section>
@else
<section
class=
"video section"
id=
"video"
>
{{--
<h2
class=
"section__title"
>
Video Tour
</h2>
--}}
<div
class=
"video__container container"
>
{{--
<p
class=
"video__description"
>
Cari tahu lebih lanjut dengan video kami ini dan cari
tempat yang menyenangkan untuk Anda dan keluarga.
</p>
--}}
<div
class=
"video__content"
>
<video
id=
"video-file"
>
{{--
<source
src=
"{{ asset('./vendor/depan/assets/video/video.mp4') }}"
type=
"video/mp4"
>
--}}
</video>
<button
class=
"button button--flex video__button"
id=
"video-button"
type=
"hidden"
>
</div>
@endforeach
</button>
</div>
</div>
</section>
@endif
<!--==================== KULINER ====================-->
@if (count($ez) > 0)
@if (count($showPenginapan) > 0)
<section
class=
"place section"
id=
"place"
>
<h2
class=
"section__title"
>
Tempat di
{{ $tempat->name }}
</h2>
<h2
class=
"section__title"
>
Penginapan
{{ $tempat->name }}
</h2>
<div
class=
"place__container container grid"
>
@foreach ($
ez
as $key => $tempat2)
@foreach ($
showPenginapan
as $key => $tempat2)
<!--==================== PLACES CARD 1 ====================-->
<div
class=
"place__card"
>
<img
src=
"{{ asset('images') }}/{{ $tempat2->image }}"
alt=
""
...
...
@@ -305,6 +275,127 @@
</div>
</section>
@endif
@if (count($showKuliner) > 0)
<section
class=
"place section"
id=
"place"
>
<h2
class=
"section__title"
>
Kuliner {{ $tempat->name }}
</h2>
<div
class=
"place__container container grid"
>
@foreach ($showKuliner as $key => $tempat2)
<!--==================== PLACES CARD 1 ====================-->
<div
class=
"place__card"
>
<img
src=
"{{ asset('images') }}/{{ $tempat2->image }}"
alt=
""
class=
"place__img"
>
<div
class=
"place__content"
>
<span
class=
"place__rating"
>
<i
class=
"ri-star-line place__rating-icon"
></i>
<!--<span class="place__rating-number">4,8</span>-->
</span>
<div
class=
"place__data"
>
<h3
class=
"place__title"
>
{{ $tempat2->name }}
</h3>
{{--
<span
class=
"place__subtitle"
>
{{ $tempat2->kategori }}
</span>
--}}
<span
class=
"place__price"
>
{{ $tempat2->kategori }}
</span>
</div>
</div>
<a
href=
"{{ url('./' . $tempat2->kategori . '/' . $tempat2->slug) }}"
>
<button
class=
"button button--flex place__button"
>
<i
class=
"ri-arrow-right-line"
></i>
</button>
</a>
</div>
@endforeach
</div>
</section>
@endif
@if (count($showEvent) > 0)
<section
class=
"place section"
id=
"place"
>
<h2
class=
"section__title"
>
Event
&
Tempat Sewa {{ $tempat->name }}
</h2>
<div
class=
"place__container container grid"
>
@foreach ($showEvent as $key => $tempat2)
<!--==================== PLACES CARD 1 ====================-->
<div
class=
"place__card"
>
<img
src=
"{{ asset('images') }}/{{ $tempat2->image }}"
alt=
""
class=
"place__img"
>
<div
class=
"place__content"
>
<span
class=
"place__rating"
>
<i
class=
"ri-star-line place__rating-icon"
></i>
<!--<span class="place__rating-number">4,8</span>-->
</span>
<div
class=
"place__data"
>
<h3
class=
"place__title"
>
{{ $tempat2->name }}
</h3>
{{--
<span
class=
"place__subtitle"
>
{{ $tempat2->kategori }}
</span>
--}}
<span
class=
"place__price"
>
{{ $tempat2->kategori }}
</span>
</div>
</div>
<a
href=
"{{ url('./' . $tempat2->kategori . '/' . $tempat2->slug) }}"
>
<button
class=
"button button--flex place__button"
>
<i
class=
"ri-arrow-right-line"
></i>
</button>
</a>
</div>
@endforeach
</div>
</section>
@endif
@if (!$tempat->video == null)
<!--==================== VIDEO ====================-->
<section
class=
"video section"
id=
"video"
>
<h2
class=
"section__title"
>
Video Tour
</h2>
<div
class=
"video__container container"
>
<p
class=
"video__description"
>
Cari tahu lebih lanjut dengan video kami ini dan cari
tempat yang menyenangkan untuk Anda dan keluarga.
</p>
<div
class=
"video__content"
>
<video
id=
"video-file"
>
{{--
<source
src=
"https://www.youtube.com/watch?v=zJNIFyVAmQw"
type=
"video/mp4"
>
--}}
<source
src=
"{{ asset('videos') }}/{{ $tempat->video }}"
type=
"video/mp4"
>
{{--
<source
src=
"{{ asset('./vendor/depan/assets/video/video.mp4') }}"
type=
"video/mp4"
>
--}}
</video>
<button
class=
"button button--flex video__button"
id=
"video-button"
>
<i
class=
"ri-play-line video__button-icon"
id=
"video-icon"
></i>
</button>
</div>
</div>
</section>
@else
<section
class=
"video section"
id=
"video"
>
{{--
<h2
class=
"section__title"
>
Video Tour
</h2>
--}}
<div
class=
"video__container container"
>
{{--
<p
class=
"video__description"
>
Cari tahu lebih lanjut dengan video kami ini dan cari
tempat yang menyenangkan untuk Anda dan keluarga.
</p>
--}}
<div
class=
"video__content"
>
<video
id=
"video-file"
>
{{--
<source
src=
"{{ asset('./vendor/depan/assets/video/video.mp4') }}"
type=
"video/mp4"
>
--}}
</video>
<button
class=
"button button--flex video__button"
id=
"video-button"
type=
"hidden"
>
</button>
</div>
</div>
</section>
@endif
<!--==================== HOTEL ====================-->
{{--
<section
class=
"place section"
id=
"penginapan"
>
<h2
class=
"section__title"
>
Penginapan Disekitar {{ $tempat->name }}
</h2>
...
...
This diff is collapsed.
Click to expand it.
resources/views/FrontEnd/welcome.blade.php
View file @
0900e2a0
...
...
@@ -91,7 +91,7 @@
@if (count($tempat) > 0)
@foreach ($tempat as $key => $tempat)
<!--==================== DISCOVER 1 ====================-->
<div
class=
"discover__card swiper-slide"
>
<div
class=
"discover__card swiper-slide"
style=
"width: 60%"
;
>
@if ($tempat->image == null)
Gambar Tidak Tersedia
@else
...
...
This diff is collapsed.
Click to expand it.
resources/views/bayar_update.blade.php
View file @
0900e2a0
...
...
@@ -177,7 +177,7 @@
<ul
class=
"pagination pagination justify-content-center"
>
{{--
<button
class=
" btn btn-primary me-1 mb-1"
href=
"{{ route('bayar_status', [$kode]) }}"
><i
class=
"fas fa-sync"
></i></button>
--}}
<button
type=
"submit"
class=
"btn btn-primary me-1 mb-1"
>
Baik
</button>
<button
type=
"submit"
class=
"btn btn-primary me-1 mb-1"
>
Oke
</button>
</ul>
</form>
...
...
This diff is collapsed.
Click to expand it.
resources/views/explore/desa_wisata.blade.php
View file @
0900e2a0
...
...
@@ -34,7 +34,7 @@
@
if
(
count
(
$tempat
)
>
0
)
@
foreach
(
$tempat
as
$key
=>
$tempat
)
<!--====================
DISCOVER
1
====================-->
<
div
class
=
"discover__card swiper-slide"
>
<
div
class
=
"discover__card swiper-slide"
style
=
"width: 60%"
;
>
@
if
(
$tempat
->
image
==
null
)
Gambar
Tidak
Tersedia
@
else
...
...
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