fix: update tour management
This commit is contained in:
@@ -1,3 +1,80 @@
|
||||
<div>
|
||||
<!-- Simplicity is an acquired taste. - Katharine Gerould -->
|
||||
</div>
|
||||
@extends('admin.layouts.app')
|
||||
|
||||
@section('title', 'جزئیات تور')
|
||||
|
||||
@section('content')
|
||||
{{-- هدر صفحه --}}
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h3 class="mb-0">
|
||||
<i class="bi bi-airplane me-2"></i>
|
||||
جزئیات تور
|
||||
</h3>
|
||||
<div>
|
||||
<a href="{{ route('admin.tours.edit', $tour) }}" class="btn btn-warning">
|
||||
<i class="bi bi-pencil-square me-1"></i>ویرایش
|
||||
</a>
|
||||
<a href="{{ route('admin.tours.index') }}" class="btn btn-secondary">
|
||||
<i class="bi bi-arrow-right me-1"></i>بازگشت به لیست
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{-- کارت اطلاعات --}}
|
||||
<div class="card shadow-sm border-0">
|
||||
<div class="card-header bg-white py-3">
|
||||
<span class="fw-bold">{{ $tour->title }}</span>
|
||||
</div>
|
||||
<div class="card-body">
|
||||
<table class="table table-bordered table-striped align-middle mb-0">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th class="bg-light" style="width: 200px;">عنوان</th>
|
||||
<td>{{ $tour->title }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bg-light">مبدا</th>
|
||||
<td>{{ $tour->origin }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bg-light">مقصد</th>
|
||||
<td>{{ $tour->destination }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bg-light">تاریخ شروع</th>
|
||||
<td>{{ \Carbon\Carbon::parse($tour->start_date)->format('Y/m/d') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bg-light">تاریخ پایان</th>
|
||||
<td>{{ \Carbon\Carbon::parse($tour->end_date)->format('Y/m/d') }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bg-light">قیمت</th>
|
||||
<td>{{ number_format($tour->price) }} <small>تومان</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bg-light">ظرفیت</th>
|
||||
<td>{{ $tour->capacity }} <small>نفر</small></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bg-light">وضعیت</th>
|
||||
<td>
|
||||
@if($tour->status == 0)
|
||||
<span class="badge bg-danger">غیرفعال</span>
|
||||
@elseif($tour->status == 1)
|
||||
<span class="badge bg-warning text-dark">فعال / پیشنویس</span>
|
||||
@elseif($tour->status == 2)
|
||||
<span class="badge bg-success">منتشرشده</span>
|
||||
@else
|
||||
<span class="badge bg-secondary">نامشخص</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="bg-light">توضیحات</th>
|
||||
<td>{!! nl2br(e($tour->description)) !!}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
Reference in New Issue
Block a user