chore: finalize project updates
This commit is contained in:
@@ -1,3 +1,78 @@
|
||||
<div>
|
||||
<!-- No surplus words or unnecessary actions. - Marcus Aurelius -->
|
||||
</div>
|
||||
@extends('layouts.app')
|
||||
|
||||
@section('content')
|
||||
<div class="container py-4">
|
||||
<div class="d-flex justify-content-between align-items-center mb-4">
|
||||
<h2>نظرات من</h2>
|
||||
<a href="{{ route('account.index') }}" class="btn btn-outline-secondary btn-sm">بازگشت به پنل</a>
|
||||
</div>
|
||||
|
||||
@if(session('success'))
|
||||
<div class="alert alert-success">{{ session('success') }}</div>
|
||||
@endif
|
||||
|
||||
@if($comments->isEmpty())
|
||||
<div class="alert alert-info">
|
||||
هنوز نظری ثبت نکردهای.
|
||||
<a href="{{ route('tours.index') }}" class="alert-link">مشاهده تورها</a>
|
||||
</div>
|
||||
@else
|
||||
<div class="card">
|
||||
<div class="card-body p-0">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>مربوط به</th>
|
||||
<th>متن نظر</th>
|
||||
<th>تاریخ</th>
|
||||
<th>وضعیت</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($comments as $comment)
|
||||
<tr>
|
||||
{{-- آیتم مرتبط (تور یا پرواز) --}}
|
||||
<td>
|
||||
@if($comment->commentable)
|
||||
@if($comment->commentable instanceof \App\Models\Tour)
|
||||
<a href="{{ route('tours.show', $comment->commentable) }}">
|
||||
<i class="fa fa-plane"></i> {{ $comment->commentable->title }}
|
||||
</a>
|
||||
@else
|
||||
<a href="{{ route('flights.show', $comment->commentable) }}">
|
||||
<i class="fa fa-plane"></i>
|
||||
{{ $comment->commentable->title ?? $comment->commentable->flight_number ?? 'پرواز' }}
|
||||
</a>
|
||||
@endif
|
||||
@else
|
||||
<span class="text-muted">حذف شده</span>
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td class="text-muted">{{ Str::limit($comment->body, 80) }}</td>
|
||||
<td>{{ $comment->created_at->format('Y/m/d') }}</td>
|
||||
|
||||
<td>
|
||||
@if($comment->status == 2)
|
||||
<span class="badge bg-success">تایید شده</span>
|
||||
@elseif($comment->status == 1)
|
||||
<span class="badge bg-warning text-dark">در انتظار تایید</span>
|
||||
@else
|
||||
<span class="badge bg-danger">رد شده</span>
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="mt-3 d-flex justify-content-center">
|
||||
{{ $comments->links() }}
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@endsection
|
||||
|
||||
@@ -20,51 +20,3 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{--<div class="banner _h-33vh _br-3 banner-animate banner-animate-mask-in">--}}
|
||||
|
||||
{{-- <div--}}
|
||||
{{-- class="banner-bg"--}}
|
||||
{{-- style="background-image:url('{{ asset($image) }}');">--}}
|
||||
{{-- </div>--}}
|
||||
|
||||
{{-- <div class="banner-mask"></div>--}}
|
||||
|
||||
{{-- <a--}}
|
||||
{{-- class="banner-link"--}}
|
||||
{{-- href="#">--}}
|
||||
{{-- </a>--}}
|
||||
|
||||
{{-- <div class="banner-caption _pt-120 banner-caption-bottom banner-caption-grad">--}}
|
||||
|
||||
{{-- <h5 class="banner-title">--}}
|
||||
{{-- {{ $title }}--}}
|
||||
{{-- </h5>--}}
|
||||
|
||||
{{-- <p class="banner-subtitle">--}}
|
||||
{{-- {{ $country }}--}}
|
||||
{{-- </p>--}}
|
||||
|
||||
{{-- </div>--}}
|
||||
|
||||
{{--</div>--}}
|
||||
|
||||
{{--@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