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
4893f964
Commit
4893f964
authored
2 years ago
by
dindarestika
Browse files
Options
Download
Email Patches
Plain Diff
tempat sewa to villa
parent
8fcb9369
main
ridwan
salsabilifee
No related merge requests found
Changes
52
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
app/Http/Controllers/BookingEventController.php
+2
-0
app/Http/Controllers/BookingEventController.php
app/Http/Controllers/BookingTempatSewaController.php
+11
-9
app/Http/Controllers/BookingTempatSewaController.php
app/Http/Controllers/EventController.php
+8
-1
app/Http/Controllers/EventController.php
app/Http/Controllers/FrontendController.php
+16
-22
app/Http/Controllers/FrontendController.php
app/Http/Controllers/TempatController.php
+0
-4
app/Http/Controllers/TempatController.php
app/Http/Controllers/TempatSewaController.php
+8
-5
app/Http/Controllers/TempatSewaController.php
app/Http/Controllers/TiketController.php
+4
-4
app/Http/Controllers/TiketController.php
app/Models/ReviewTempatSewa.php
+1
-1
app/Models/ReviewTempatSewa.php
app/Models/TempatSewa.php
+1
-1
app/Models/TempatSewa.php
database/migrations/2022_06_29_061604_create_tb_tempatsewa.php
+2
-2
...ase/migrations/2022_06_29_061604_create_tb_tempatsewa.php
database/migrations/2022_06_30_073438_create_tb_bookingtempatsewa_table.php
+1
-1
...s/2022_06_30_073438_create_tb_bookingtempatsewa_table.php
database/migrations/2022_07_02_063025_create_tb_review_tempatsewa_table.php
+1
-1
...s/2022_07_02_063025_create_tb_review_tempatsewa_table.php
public/images/1628485230.png
+0
-0
public/images/1628485230.png
public/images/FhckjzPTQAmDLYTzV7VaUfU9Qj93H8nNNOwQqJCd.jpg
+0
-0
public/images/FhckjzPTQAmDLYTzV7VaUfU9Qj93H8nNNOwQqJCd.jpg
public/images/JTMzOcSIyutHCMwXvEshth0cABymNMMNDZFhtKM6.png
+0
-0
public/images/JTMzOcSIyutHCMwXvEshth0cABymNMMNDZFhtKM6.png
public/images/XpgUUOIZE4PveOZS8NtQyQwQI9833GuLEf1lm4ed.png
+0
-0
public/images/XpgUUOIZE4PveOZS8NtQyQwQI9833GuLEf1lm4ed.png
public/images/YcsJJZVneJ3eMV2AqhXD00I6etavupKA0jDxYPS7.png
+0
-0
public/images/YcsJJZVneJ3eMV2AqhXD00I6etavupKA0jDxYPS7.png
public/images/cOtyuqBG7bxVOxdJhHrChHTqZYgf4YKTLjCBpKfS.jpg
+0
-0
public/images/cOtyuqBG7bxVOxdJhHrChHTqZYgf4YKTLjCBpKfS.jpg
public/images/dtAMGZTGb6iTt3Iru4E094teE8uDGSfN03kYyqKc.jpg
+0
-0
public/images/dtAMGZTGb6iTt3Iru4E094teE8uDGSfN03kYyqKc.jpg
public/images/ljO8odmKsfqAf2NRvCNmi97IKs0Rd2eywCV054KQ.jpg
+0
-0
public/images/ljO8odmKsfqAf2NRvCNmi97IKs0Rd2eywCV054KQ.jpg
with
55 additions
and
51 deletions
+55
-51
app/Http/Controllers/BookingEventController.php
View file @
4893f964
...
...
@@ -261,6 +261,7 @@ class BookingEventController extends Controller
{
$review
=
ReviewEvent
::
find
(
$id
);
$review
->
event_id
=
$request
->
event_id
;
$review
->
nama
=
$request
->
nama
;
$review
->
rating
=
$request
->
rating
;
$review
->
comment
=
$request
->
comment
;
$review
->
kode_tiket
=
$request
->
kode_tiket
;
...
...
@@ -280,6 +281,7 @@ class BookingEventController extends Controller
public
function
update_rating
(
Request
$request
,
$id
)
{
$review
=
ReviewEvent
::
find
(
$id
);
$review
->
nama
=
$request
->
nama
;
$review
->
rating
=
$request
->
rating
;
$review
->
comment
=
$request
->
comment
;
$review
->
save
();
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/BookingTempatSewaController.php
View file @
4893f964
...
...
@@ -84,9 +84,9 @@ class BookingTempatSewaController extends Controller
return
redirect
()
->
back
();
}
$datatempatsewa
=
DB
::
select
(
"SELECT a.harga FROM `tb_
tempatsew
a` AS a
LEFT JOIN tb_bookingtempatsewa AS b ON b.
tempatsew
a_id = a.id
WHERE a.id =
$request->
tempatsew
a_id
"
"SELECT a.harga FROM `tb_
vill
a` AS a
LEFT JOIN tb_bookingtempatsewa AS b ON b.
vill
a_id = a.id
WHERE a.id =
$request->
vill
a_id
"
);
foreach
(
$datatempatsewa
as
$a
)
{
...
...
@@ -113,7 +113,7 @@ class BookingTempatSewaController extends Controller
'biaya'
=>
$biaya
,
'kartu_identitas'
=>
$kartu_identitas
,
'user_id'
=>
$request
->
user_id
,
'
tempatsew
a_id'
=>
$request
->
tempatsew
a_id
,
'
vill
a_id'
=>
$request
->
vill
a_id
,
'status'
=>
'1'
,
]);
Tiket
::
create
([
...
...
@@ -134,7 +134,7 @@ class BookingTempatSewaController extends Controller
"tanggal_a"
=>
$startDate
,
"tanggal_b"
=>
$endDate
,
"kode_tiket"
=>
$checkout_kode
,
"id_produk"
=>
$request
->
tempatsew
a_id
,
"id_produk"
=>
$request
->
vill
a_id
,
"booking_id"
=>
$request
->
kode_booking
,
"harga"
=>
$biaya
,
"jumlah"
=>
$request
->
jml_orang
,
...
...
@@ -211,9 +211,9 @@ class BookingTempatSewaController extends Controller
return
redirect
()
->
back
();
}
$datatempatsewa
=
DB
::
select
(
"SELECT a.harga FROM `tb_
tempatsew
a` AS a
LEFT JOIN tb_bookingtempatsewa AS b ON b.
tempatsew
a_id = a.id
WHERE a.id =
$request->
tempatsew
a_id
"
"SELECT a.harga FROM `tb_
vill
a` AS a
LEFT JOIN tb_bookingtempatsewa AS b ON b.
vill
a_id = a.id
WHERE a.id =
$request->
vill
a_id
"
);
$datatiket
=
DB
::
select
(
"SELECT a.harga , a.id FROM `tb_tiket` AS a
...
...
@@ -282,7 +282,8 @@ class BookingTempatSewaController extends Controller
public
function
tambah_rating
(
Request
$request
,
$id
)
{
$review
=
ReviewTempatSewa
::
find
(
$id
);
$review
->
tempatsewa_id
=
$request
->
tempatsewa_id
;
$review
->
villa_id
=
$request
->
villa_id
;
$review
->
nama
=
$request
->
nama
;
$review
->
rating
=
$request
->
rating
;
$review
->
comment
=
$request
->
comment
;
$review
->
kode_tiket
=
$request
->
kode_tiket
;
...
...
@@ -302,6 +303,7 @@ class BookingTempatSewaController extends Controller
public
function
update_rating
(
Request
$request
,
$id
)
{
$review
=
ReviewTempatSewa
::
find
(
$id
);
$review
->
nama
=
$request
->
nama
;
$review
->
rating
=
$request
->
rating
;
$review
->
comment
=
$request
->
comment
;
$review
->
save
();
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/EventController.php
View file @
4893f964
...
...
@@ -191,6 +191,10 @@ class EventController extends Controller
}
else
{
$event
=
Event
::
where
(
'status'
,
1
)
->
orderby
(
'tgl_buka'
,
'DESC'
)
->
paginate
(
5
);
}
if
(
$request
->
jml_orang
>
5
)
{
Toastr
::
warning
(
'Maksimal pesan 5 tiket'
,
'Warning'
);
return
redirect
(
'/explore-event'
);
}
if
(
$kapasitas_akhir
+
$request
->
jml_orang
>
$kapasitas_awal
)
{
Toastr
::
warning
(
'Tiket tinggal sisa untuk '
.
$kapasitas_awal
-
$kapasitas_akhir
.
' orang'
,
'Warning'
);
return
redirect
(
'/explore-event'
);
...
...
@@ -220,14 +224,17 @@ class EventController extends Controller
$nama
=
auth
()
->
user
()
->
name
;
$user_id
=
auth
()
->
user
()
->
id
;
$now_tgl
=
Carbon
::
now
()
->
format
(
'd'
);
$datatiket
=
Tiket
::
max
(
'id'
);
$urutantiket
=
(
int
)(
$datatiket
);
$urutantiket
++
;
$huruftiket
=
"LT-"
;
$checkout_kode
=
$huruftiket
.
$urutantiket
.
uniqid
();
// $checkout_kode = $huruftiket . $urutantiket . uniqid();
$checkout_kode
=
$huruftiket
.
$urutantiket
.
$user_id
.
$now_tgl
;
$kode_booking
=
$request
->
kode_booking
;
BookingEvent
::
create
([
'kode_tiket'
=>
$checkout_kode
,
'kode_booking'
=>
$kode_booking
,
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/FrontendController.php
View file @
4893f964
...
...
@@ -73,8 +73,6 @@ class FrontendController extends Controller
$event
=
Event
::
where
(
'status'
,
1
)
->
orderby
(
'tgl_buka'
,
'DESC'
)
->
paginate
(
5
);
}
// ->whereDate('tgl_buka', '>=', $now)
return
view
(
'explore/halaman_explore_event'
,
[
"title"
=>
"Explore"
,
"setting"
=>
$setting
,
...
...
@@ -101,8 +99,8 @@ class FrontendController extends Controller
{
$setting
=
Setting
::
first
();
$tempatsewa
=
TempatSewa
::
find
(
$id
);
$review
=
ReviewTempatSewa
::
where
(
'
tempatsew
a_id'
,
$id
)
->
whereNotNull
(
'rating'
)
->
orderby
(
'created_at'
,
'DESC'
)
->
get
();
$avg
=
ReviewTempatSewa
::
where
(
'
tempatsew
a_id'
,
$id
)
->
whereNotNull
(
'rating'
)
->
avg
(
'rating'
);
$review
=
ReviewTempatSewa
::
where
(
'
vill
a_id'
,
$id
)
->
whereNotNull
(
'rating'
)
->
orderby
(
'created_at'
,
'DESC'
)
->
get
();
$avg
=
ReviewTempatSewa
::
where
(
'
vill
a_id'
,
$id
)
->
whereNotNull
(
'rating'
)
->
avg
(
'rating'
);
return
view
(
'explore.halaman_explore_tempatsewa_detail'
,
[
"title"
=>
"Explore"
,
"tempatsewa"
=>
$tempatsewa
,
...
...
@@ -204,22 +202,18 @@ class FrontendController extends Controller
{
session
()
->
forget
(
"camping"
);
// $place = $name;
$tempat
=
DB
::
table
(
'tb_tempat'
)
->
where
(
'status'
,
'1'
)
->
first
();
// dd(
$tempat);
//
$tempat = DB::table('tb_tempat')->where('status', '1')->first();
$tempat
=
DB
::
table
(
'tb_tempat'
)
->
where
(
'status'
,
'1'
)
->
where
(
'slug'
,
$slug
)
->
first
(
);
if
(
$tempat
->
kategori
==
"wisata"
)
{
$tempat2
=
Tempat
::
where
(
'slug'
,
$slug
)
->
where
(
'status'
,
'1'
)
->
first
();
// dd($tempat2);
$tempatini
=
$tempat
->
id
;
$wahana
=
Wahana
::
where
(
'tempat_id'
,
$tempatini
)
->
where
(
'status'
,
'1'
)
->
get
();
$kuliner
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'kategori'
,
'kuliner'
)
->
get
();
$penginapan
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'kategori'
,
'
hotel
'
)
->
get
();
$penginapan
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'kategori'
,
'
penginapan
'
)
->
get
();
$ez
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
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/showtempat'
,
compact
(
'ez'
,
'tempat'
,
'wahana'
,
'kuliner'
,
'makanan'
,
'camp'
,
'camp1'
,
'penginapan'
));
}
...
...
@@ -230,7 +224,7 @@ class FrontendController extends Controller
$wahana
=
Wahana
::
where
(
'tempat_id'
,
$tempatini
)
->
where
(
'status'
,
'1'
)
->
get
();
$kuliner
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'kategori'
,
'kuliner'
)
->
get
();
$penginapan
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'kategori'
,
'
hotel
'
)
->
get
();
$penginapan
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'kategori'
,
'
penginapan
'
)
->
get
();
$ez
=
Tempat
::
where
(
'induk_id'
,
$tempatini
)
->
where
(
'status'
,
1
)
->
get
();
$camp
=
Camp
::
where
(
'tempat_id'
,
$tempatini
)
->
where
(
'status'
,
1
)
->
where
(
'kategori'
,
'alat'
)
->
get
();
// dd($camp);
...
...
@@ -251,7 +245,7 @@ class FrontendController extends Controller
$kuliner
=
session
(
"kuliner"
);
return
view
(
'FrontEnd/showtempatk'
,
compact
(
'tempat'
,
'makanan'
,
'minuman'
,
'snack'
,
'kuliner'
));
}
if
(
$tempat
->
kategori
==
"
hotel
"
)
{
if
(
$tempat
->
kategori
==
"
penginapan
"
)
{
// dd($tempat);
$kamar
=
Kamar
::
where
(
'tempat_id'
,
$tempat
->
id
)
->
where
(
'status'
,
1
)
->
get
();
...
...
@@ -817,21 +811,21 @@ class FrontendController extends Controller
$tempat_lama
=
TempatSewa
::
where
(
'status'
,
1
)
->
orderby
(
'id'
,
'asc'
)
->
take
(
3
)
->
get
();
$tempat_murah
=
TempatSewa
::
where
(
'status'
,
1
)
->
orderby
(
'harga'
,
'asc'
)
->
take
(
3
)
->
get
();
$penginapan
=
Tempat
::
where
(
'kategori'
,
'penginapan'
)
->
where
(
'status'
,
1
)
->
get
();
return
view
(
'explore/halaman_explore_tempat_sewa'
,
[
"title"
=>
"Explore"
,
"setting"
=>
$setting
,
"tempat_baru"
=>
$tempat_baru
,
"tempat_lama"
=>
$tempat_lama
,
"tempat_murah"
=>
$tempat_murah
,
"penginapan"
=>
$penginapan
,
]);
}
// function available_place(Request $request, $checkin_date)
// {
// $tempat = DB::SELECT("SELECT * FROM tb_
tempatsew
a WHERE id NOT IN
// (SELECT
tempatsew
a_id FROM tb_bookingtempatsewa WHERE '$checkin_date' BETWEEN checkin AND checkout)");
// $tempat = DB::SELECT("SELECT * FROM tb_
vill
a WHERE id NOT IN
// (SELECT
vill
a_id FROM tb_bookingtempatsewa WHERE '$checkin_date' BETWEEN checkin AND checkout)");
// return response()->json(['data' => $tempat]);
// }
public
function
booking_search
(
Request
$request
)
...
...
@@ -850,9 +844,9 @@ class FrontendController extends Controller
Toastr
::
warning
(
'Tanggal checkout tidak boleh sama tanggal checkin'
,
'Warning'
);
return
redirect
()
->
back
();
}
else
{
// $tempat = DB::SELECT("SELECT * FROM tb_
tempatsew
a WHERE id NOT IN
// (SELECT
tempatsew
a_id FROM tb_bookingtempatsewa WHERE '$checkin' BETWEEN checkin AND checkout)");
$tempatsewa
=
DB
::
SELECT
(
"SELECT * FROM tb_
tempatsew
a WHERE id NOT IN (SELECT
tempatsew
a_id FROM tb_bookingtempatsewa
// $tempat = DB::SELECT("SELECT * FROM tb_
vill
a WHERE id NOT IN
// (SELECT
vill
a_id FROM tb_bookingtempatsewa WHERE '$checkin' BETWEEN checkin AND checkout)");
$tempatsewa
=
DB
::
SELECT
(
"SELECT * FROM tb_
vill
a WHERE id NOT IN (SELECT
vill
a_id FROM tb_bookingtempatsewa
WHERE ('
$checkin
' BETWEEN checkin AND checkout) OR ('
$checkout
' BETWEEN checkin AND checkout))"
);
return
view
(
'explore/halaman_explore_tempat_sewa'
,
[
...
...
@@ -873,8 +867,8 @@ class FrontendController extends Controller
'checkin'
=>
'required|after_or_equal:'
.
$now
,
'checkout'
=>
'required|after:checkin'
]);
$
tempatsew
a_id
=
$request
->
tempatsew
a_id
;
$tempatsewa
=
TempatSewa
::
find
(
$
tempatsew
a_id
);
$
vill
a_id
=
$request
->
vill
a_id
;
$tempatsewa
=
TempatSewa
::
find
(
$
vill
a_id
);
$checkin
=
$request
->
checkin
;
$checkout
=
$request
->
checkout
;
$formatted_dt1
=
Carbon
::
parse
(
$request
->
checkin
);
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/TempatController.php
View file @
4893f964
...
...
@@ -85,8 +85,6 @@ class TempatController extends Controller
Toastr
::
error
(
'Role admin dan kategori berbeda'
,
'Error'
);
return
redirect
()
->
back
();
}
// if($user->)
$name
=
(
new
Tempat
)
->
tempatAvatar
(
$request
);
$data
[
'image'
]
=
$name
;
...
...
@@ -202,8 +200,6 @@ class TempatController extends Controller
// $this->validateUpdate($request, $id);
$data
=
$request
->
all
();
// dd($data);
$this
->
validateUpdate
(
$request
,
$id
);
$user
=
Tempat
::
find
(
$id
);
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/TempatSewaController.php
View file @
4893f964
...
...
@@ -179,16 +179,18 @@ class TempatSewaController extends Controller
$dt
=
Tempat
::
where
(
'user_id'
,
$users
->
petugas_id
)
->
first
();
$tempat_id
=
$dt
->
id
;
// $dt = Tempat::where('user_id', 'D007')->first()
;
// $tempat_id = $dt->id
;
$id_user_tiket
=
Auth
::
user
()
->
id
;
$now_tgl
=
Carbon
::
now
()
->
format
(
'd'
)
;
date_default_timezone_set
(
'Asia/Jakarta'
);
$tempatsewa
=
TempatSewa
::
find
(
$id
);
//kodetiket
$data
=
Tiket
::
max
(
'id'
);
$urutan
=
(
int
)(
$data
);
$urutan
++
;
$huruf
=
"LT-"
;
$checkout_kode
=
$huruf
.
$urutan
.
uniqid
();
// $checkout_kode = $huruf . $urutan . uniqid();
$checkout_kode
=
$huruf
.
$urutan
.
$id_user_tiket
.
$now_tgl
;
//kodebooking
$data
=
BookingTempatSewa
::
max
(
'kode_booking'
);
...
...
@@ -198,7 +200,8 @@ class TempatSewaController extends Controller
$kode_booking
=
$huruff
.
sprintf
(
'%04s'
,
$urutann
);
$biaya
=
$durasi
*
$tempatsewa
->
harga
;
$kartu_identitas
=
(
new
BookingTempatSewa
)
->
userAvatar
(
$request
);
// $kartu_identitas = (new BookingTempatSewa)->userAvatar($request);
$kartu_identitas
=
$request
->
kartu_identitas
;
$user_id
=
auth
()
->
user
()
->
id
;
$data
=
BookingTempatSewa
::
create
([
'kode_tiket'
=>
$checkout_kode
,
...
...
@@ -213,7 +216,7 @@ class TempatSewaController extends Controller
'biaya'
=>
$biaya
,
'kartu_identitas'
=>
$kartu_identitas
,
'user_id'
=>
$user_id
,
'
tempatsew
a_id'
=>
$id
,
'
vill
a_id'
=>
$id
,
'status'
=>
'1'
,
]);
Tiket
::
create
([
...
...
This diff is collapsed.
Click to expand it.
app/Http/Controllers/TiketController.php
View file @
4893f964
...
...
@@ -1286,9 +1286,9 @@ class TiketController extends Controller
return
redirect
()
->
back
();
}
$datatempatsewa
=
DB
::
select
(
"SELECT a.harga FROM `tb_
tempatsew
a` AS a
LEFT JOIN tb_bookingtempatsewa AS b ON b.
tempatsew
a_id = a.id
WHERE a.id =
$request->
tempatsew
a_id
"
"SELECT a.harga FROM `tb_
vill
a` AS a
LEFT JOIN tb_bookingtempatsewa AS b ON b.
vill
a_id = a.id
WHERE a.id =
$request->
vill
a_id
"
);
foreach
(
$datatempatsewa
as
$a
)
{
$biaya
=
$a
->
harga
*
(
$durasi
+
1
);
...
...
@@ -1323,7 +1323,7 @@ class TiketController extends Controller
'biaya'
=>
$biaya
,
'kartu_identitas'
=>
$kartu_identitas
,
'user_id'
=>
$user_id
,
'
tempatsew
a_id'
=>
$request
->
tempatsew
a_id
,
'
vill
a_id'
=>
$request
->
vill
a_id
,
]);
Tiket
::
create
([
'kode'
=>
$checkout_kode
,
...
...
This diff is collapsed.
Click to expand it.
app/Models/ReviewTempatSewa.php
View file @
4893f964
...
...
@@ -17,6 +17,6 @@ class ReviewTempatSewa extends Model
}
public
function
tempat
()
{
return
$this
->
belongsTo
(
TempatSewa
::
class
,
'
tempatsew
a_id'
);
return
$this
->
belongsTo
(
TempatSewa
::
class
,
'
vill
a_id'
);
}
}
This diff is collapsed.
Click to expand it.
app/Models/TempatSewa.php
View file @
4893f964
...
...
@@ -8,7 +8,7 @@ use Illuminate\Database\Eloquent\Model;
class
TempatSewa
extends
Model
{
use
HasFactory
;
protected
$table
=
"tb_
tempatsew
a"
;
protected
$table
=
"tb_
vill
a"
;
protected
$guarded
=
[];
public
function
userAvatar
(
$request
)
...
...
This diff is collapsed.
Click to expand it.
database/migrations/2022_06_29_061604_create_tb_tempatsewa.php
View file @
4893f964
...
...
@@ -13,7 +13,7 @@ class CreateTbTempatsewa extends Migration
*/
public
function
up
()
{
Schema
::
create
(
'tb_
tempatsew
a'
,
function
(
Blueprint
$table
)
{
Schema
::
create
(
'tb_
vill
a'
,
function
(
Blueprint
$table
)
{
$table
->
id
();
$table
->
string
(
'user_id'
)
->
references
(
'petugas_id'
)
->
on
(
'users'
)
->
onUpdate
(
'cascade'
)
->
onDelete
(
'cascade'
);
$table
->
string
(
'kode_tempat'
);
...
...
@@ -37,6 +37,6 @@ class CreateTbTempatsewa extends Migration
*/
public
function
down
()
{
Schema
::
dropIfExists
(
'tb_
tempatsew
a'
);
Schema
::
dropIfExists
(
'tb_
vill
a'
);
}
}
This diff is collapsed.
Click to expand it.
database/migrations/2022_06_30_073438_create_tb_bookingtempatsewa_table.php
View file @
4893f964
...
...
@@ -30,7 +30,7 @@ class CreateTbBookingtempatsewaTable extends Migration
$table
->
integer
(
'biaya'
)
->
nullable
();
$table
->
integer
(
'status'
)
->
default
(
0
);
$table
->
foreignId
(
'user_id'
)
->
nullable
();
$table
->
foreignId
(
'
tempatsew
a_id'
)
->
nullable
();
$table
->
foreignId
(
'
vill
a_id'
)
->
nullable
();
$table
->
timestamps
();
});
}
...
...
This diff is collapsed.
Click to expand it.
database/migrations/2022_07_02_063025_create_tb_review_tempatsewa_table.php
View file @
4893f964
...
...
@@ -18,7 +18,7 @@ class CreateTbReviewTempatsewaTable extends Migration
$table
->
integer
(
'rating'
)
->
nullable
();
$table
->
text
(
'comment'
)
->
nullable
();
$table
->
string
(
'kode_tiket'
);
$table
->
foreignId
(
'
tempatsew
a_id'
)
->
nullable
();
$table
->
foreignId
(
'
vill
a_id'
)
->
nullable
();
$table
->
foreignId
(
'user_id'
)
->
nullable
();
$table
->
string
(
'status'
)
->
default
(
0
);
$table
->
timestamps
();
...
...
This diff is collapsed.
Click to expand it.
public/images/1628485230.png
deleted
100644 → 0
View file @
8fcb9369
618 KB
This diff is collapsed.
Click to expand it.
public/images/FhckjzPTQAmDLYTzV7VaUfU9Qj93H8nNNOwQqJCd.jpg
0 → 100644
View file @
4893f964
143 KB
This diff is collapsed.
Click to expand it.
public/images/JTMzOcSIyutHCMwXvEshth0cABymNMMNDZFhtKM6.png
0 → 100644
View file @
4893f964
474 KB
This diff is collapsed.
Click to expand it.
public/images/XpgUUOIZE4PveOZS8NtQyQwQI9833GuLEf1lm4ed.png
0 → 100644
View file @
4893f964
474 KB
This diff is collapsed.
Click to expand it.
public/images/YcsJJZVneJ3eMV2AqhXD00I6etavupKA0jDxYPS7.png
0 → 100644
View file @
4893f964
474 KB
This diff is collapsed.
Click to expand it.
public/images/cOtyuqBG7bxVOxdJhHrChHTqZYgf4YKTLjCBpKfS.jpg
0 → 100644
View file @
4893f964
47.9 KB
This diff is collapsed.
Click to expand it.
public/images/dtAMGZTGb6iTt3Iru4E094teE8uDGSfN03kYyqKc.jpg
0 → 100644
View file @
4893f964
158 KB
This diff is collapsed.
Click to expand it.
public/images/ljO8odmKsfqAf2NRvCNmi97IKs0Rd2eywCV054KQ.jpg
0 → 100644
View file @
4893f964
132 KB
This diff is collapsed.
Click to expand it.
Prev
1
2
3
Next
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