feat: add shared blade components
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
<!-- No surplus words or unnecessary actions. - Marcus Aurelius -->
|
||||
</div>
|
||||
@@ -0,0 +1,3 @@
|
||||
<div>
|
||||
<!-- We must ship. - Taylor Otwell -->
|
||||
</div>
|
||||
@@ -0,0 +1,19 @@
|
||||
@props(['tour'])
|
||||
|
||||
<div class="card tour-card">
|
||||
<a href="{{ route('tours.show', $tour) }}">
|
||||
<img src="{{ $tour->images->first()->path ?? asset('images/placeholder.jpg') }}" class="card-img-top"
|
||||
alt="{{ $tour->title }}">
|
||||
</a>
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">
|
||||
<a href="{{ route('tours.show', $tour) }}">{{ $tour->title }}</a>
|
||||
</h5>
|
||||
<p class="card-text">{{ Str::limit($tour->description, 80) }}</p>
|
||||
<div class="d-flex justify-content-between">
|
||||
<span>{{ $tour->travelType->title ?? '—' }}</span>
|
||||
<strong>{{ number_format($tour->price) }} تومان</strong>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user