feat: implement site visit in controller and add visit table
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user