Commit a3109277 authored by ridwannhd0705's avatar ridwannhd0705
Browse files

first commit

No related merge requests found
Showing with 11 additions and 9 deletions
+11 -9
......@@ -44,10 +44,11 @@ class FrontendController extends Controller
*/
public function index()
{
$tempat = Tempat::where('kategori', 'desa')->orderby('id', 'DESC')->where('status', '1')->get();
$tempat = Tempat::where('kategori', 'wisata')->orderby('id', 'DESC')->where('status', '1')->get();
$setting = Setting::first();
$kegiatan = Kegiatan::latest()->get();
// return $kegiatan;
// return $tempat;
return view('FrontEnd/welcome', [
"title" => "Home",
"tempat" => $tempat,
......@@ -224,7 +225,7 @@ class FrontendController extends Controller
$camp1 = Camp::where('tempat_id', $tempatini)->where('status', 1)->get();
$makanan = Kuliner::where('tempat_id', $tempat->id)->where('status', 1)->get();
$katalogkm = KatalogMerchandise::where('tempat_id', $tempat->id)->where('status', 1)->get();
return view('FrontEnd/showtempat', compact('ez', 'tempat', 'nama', 'wahana', 'kuliner', 'makanan', 'katalogmerchandise', 'katalogkm', 'camp', 'camp1', 'penginapan'));
return view('FrontEnd/showtempat', compact('tempat2', 'ez', 'tempat', 'wahana', 'kuliner', 'makanan', 'katalogmerchandise', 'katalogkm', 'camp', 'camp1', 'penginapan')); //nama
}
if ($tempat->kategori == "desa") {
......@@ -243,7 +244,7 @@ class FrontendController extends Controller
// Tempat Kuliner makanan
$makanan = Kuliner::where('tempat_id', $tempat->id)->where('status', 1)->get();
$katalog = KatalogMerchandise::where('tempat_id', $tempat->id)->where('status', 1)->get();
return view('FrontEnd/showtempatd', compact('ez', 'tempat', 'nama', 'wahana', 'kuliner', 'makanan', 'camp', 'camp1', 'katalog', 'katalogmerchandise', 'penginapan'));
return view('FrontEnd/showtempatd', compact('tempat2', 'ez', 'tempat', 'nama', 'wahana', 'kuliner', 'makanan', 'camp', 'camp1', 'katalog', 'katalogmerchandise', 'penginapan'));
}
......
......@@ -831,7 +831,7 @@ class TiketController extends Controller
session(["penginapan" => $penginapan]);
return redirect("/cart/booking");
}
function do_hapus_cart_katalogmerch($kode)
{
//
......
......@@ -12,7 +12,7 @@ class Detail_transaksi extends Model
protected $table = "tb_detailtransaksi";
protected $guarded = [];
static function tambah_detail_transaksi($user_id, $kategori, $tempat_id, $subtotal, $kode_tiket, $kode, $jumlah, $count, $name, $durasi, $tanggal_a, $tanggal_b)
static function tambah_detail_transaksi($name, $durasi, $user_id, $tanggal_a, $tanggal_b, $kode_tiket, $id_produk, $jumlah, $grandtotal, $tempat_id, $kategori, $type_bayar, $status, $count)
{
Detail_transaksi::create([
"name" => $name,
......@@ -25,7 +25,7 @@ class Detail_transaksi extends Model
"harga" => $grandtotal,
"jumlah" => $jumlah,
"count" => $count,
"harga" => $subtotal,
"harga" => $grandtotal,
"tempat_id" => $tempat_id,
"kategori" => $kategori,
"tempat_id" => $tempat_id,
......@@ -50,9 +50,8 @@ class Detail_transaksi extends Model
{
return $this->belongsTo(Ruang::class, 'id_produk');
}
public function reviewkuliner()
public function reviewkuliner()
{
return $this->hasOne(ReviewKuliner::class, 'rating_id');
}
}
public/images/l7BoUEEMWamTEfs4j3u7enCSJXyEEUAtVZTsNp8L.jpg

62.9 KB

public/images/oBS131l7CB1YBPtbFDUB4HTlCwDAkB3VGOXNhdhb.jpg

95.2 KB

......@@ -110,6 +110,8 @@
</div>
</section>
<!--==================== DISCOVER ====================-->
<!--==================== DISCOVER ====================-->
@if (count($tempat) > 0)
<section class="place section" id="place">
......
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