feat: implement site visit in controller and add visit table

This commit is contained in:
2026-08-20 12:44:04 -07:00
parent 99c60dd9c7
commit f0331152ea
11 changed files with 344 additions and 52 deletions
+60 -9
View File
@@ -1,18 +1,69 @@
<style>
.tour-item {
height: 100%;
display: flex;
flex-direction: column;
}
.tour-img {
height: 260px;
flex-shrink: 0;
overflow: hidden;
}
.tour-img img {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
.tour-content {
flex: 1;
display: flex;
flex-direction: column;
}
.tour-title {
min-height: 50px;
}
.tour-content > p {
min-height: 48px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
.tour-duration {
min-height: 25px;
}
.tour-bottom {
margin-top: auto;
}
</style>
<div class="col-md-6 col-lg-6">
<div class="tour-item">
<div class="tour-img">
<img
src="{{ $tour->file
? asset('storage/' . $tour->file->path)
: asset('assets/img/tour/01.jpg') }}"
alt="{{ $tour->title }}"
>
@if(getFileUrl($tour?->file?->id))
<img
src="{{ getFileUrl($tour?->file?->id) }}"
alt="{{ $tour->title }}"
style=""
>
@else
<img src="{{ asset('assets/img/tour/02.jpg') }}" alt
style="">
@endif
<a href="{{ route('account.wishlist.toggle', [
'type' => 'tour',
'id' => $tour->id
]) }}" class="add-wishlist">
'type' => 'tour',
'id' => $tour->id
]) }}" class="add-wishlist">
<i class="far fa-heart"></i>
</a>
</div>