Commit 0900e2a0 authored by Ridwan Hidayat's avatar Ridwan Hidayat
Browse files

fix landing

parent 6bbea2af
No related merge requests found
Pipeline #1829 passed with stage
in 16 seconds
Showing with 166 additions and 100 deletions
+166 -100
......@@ -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);
......
......@@ -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'));
}
......
......@@ -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;
......
public/images/2leUcf4xY8IxN7crzVzdIUys4P9dyX3V4cXGSvM7.jpg

269 KB

public/images/Abe7FX25XW5k1scac2pdGvE1Kq5I7Fbq69DvudK6.jpg

1.41 MB

public/images/CzeZIEBtmoV0oYB7Zr4s8Fy9hH8fUAqq73o0erBs.jpg

269 KB

File added
......@@ -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">
......
......@@ -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>
......
......@@ -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
......
......@@ -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>
......
......@@ -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
......
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