feat: add shared blade components

This commit is contained in:
2026-08-17 08:21:20 +03:30
parent bb6d841262
commit 86aa0ebe49
4 changed files with 309 additions and 0 deletions
@@ -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>
+19
View File
@@ -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>