git add .

git commit "style: improve tour archive cards"
This commit is contained in:
2026-08-20 16:49:30 +03:30
parent cef0b2fb8f
commit 1324bd3350
3 changed files with 276 additions and 248 deletions
+51 -25
View File
@@ -1,51 +1,75 @@
@extends('layouts.app')
@extends('layouts.app')
@section('content')
<div class="container py-5">
<h2 class="mb-4">
آرشیو تورها
</h2>
<div class="d-flex justify-content-between align-items-center mb-4">
<h2 class="fw-bold">
آرشیو تورها
</h2>
</div>
<div class="row">
<div class="row g-4">
@foreach($tours as $tour)
<div class="col-md-4 mb-4">
<div class="col-lg-4 col-md-6">
<div class="card shadow-sm">
<div class="card h-100 shadow-sm border-0 rounded-4 overflow-hidden">
<img src="{{ getImageUrl($tour->image) }}"
class="card-img-top"
style="height:220px; object-fit:cover;"
alt="{{ $tour->title }}">
<div class="position-relative">
<div class="card-body">
<img
src="{{ getImageUrl($tour->image) }}"
class="card-img-top"
style="height:220px; object-fit:cover;"
alt="{{ $tour->title }}"
>
<h5>
<span class="position-absolute top-0 end-0 m-3 badge bg-primary">
تور
</span>
</div>
<div class="card-body d-flex flex-column">
<h5 class="fw-bold mb-3">
{{ $tour->title }}
</h5>
<p>
<p class="text-muted mb-3">
{{ $tour->summary }}
</p>
<strong>
{{ number_format($tour->price) }}
تومان
</strong>
<div class="d-flex justify-content-between align-items-center mt-auto pt-3">
<a href="{{route('index')}}"
class="btn btn-outline-primary rounded-pill">
<strong class="text-primary fs-5">
برگشت
{{ number_format($tour->price) }}
</a>
تومان
</strong>
<a
href="{{ route('index') }}"
class="btn btn-outline-primary rounded-pill px-4"
>
برگشت
</a>
</div>
</div>
@@ -57,10 +81,12 @@
</div>
<br>
<br>
{{$tours->links()}}
<div class="mt-5 d-flex justify-content-center">
{{ $tours->links() }}
</div>
</div>