feat: finish tours in admin panel and add edit show list and create a new tour from admin panel
This commit is contained in:
@@ -21,6 +21,13 @@
|
||||
لیست تورها
|
||||
</h4>
|
||||
|
||||
<div class="d-flex justify-content-end mb-4">
|
||||
<a href="{{ route('admin.tours.create') }}" class="theme-btn">
|
||||
ساخت تور
|
||||
<i class="far fa-plus"></i>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="user-profile-form">
|
||||
|
||||
<div class="table-responsive">
|
||||
@@ -67,37 +74,59 @@
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ verta($tour->tour_details->first()->start_date)->format('Y/m/d') }}
|
||||
@if($detail && $detail->start_date)
|
||||
{{ verta($detail->start_date)->format('Y/m/d') }}
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ verta($tour->tour_details->first()->end_date)->format('Y/m/d') }} </td>
|
||||
@if($detail && $detail->end_date)
|
||||
{{ verta($detail->end_date)->format('Y/m/d') }}
|
||||
@else
|
||||
-
|
||||
@endif
|
||||
</td>
|
||||
|
||||
<td>
|
||||
{{ $tour->tour_type }}
|
||||
</td>
|
||||
|
||||
<td>
|
||||
|
||||
<div class="d-flex align-items-center gap-2">
|
||||
<a href="{{ route('tour.show', $tour->id) }}" title="مشاهده"
|
||||
|
||||
<a href="{{ route('tour.show', $tour->id) }}"
|
||||
title="مشاهده"
|
||||
class="btn btn-outline-secondary btn-sm">
|
||||
<i class="far fa-eye"></i>
|
||||
</a>
|
||||
<a href="{{ route('admin.tours.edit', $tour->id) }}" title="ویرایش"
|
||||
class="btn btn-outline-secondary btn-sm">
|
||||
|
||||
<a href="{{ route('admin.tours.edit', $tour->id) }}"
|
||||
title="ویرایش"
|
||||
class="btn btn-outline-secondary btn-sm">
|
||||
<i class="far fa-pen"></i>
|
||||
</a>
|
||||
<form action="{{ route('admin.tours.destroy', $tour->id) }}" method="POST"
|
||||
|
||||
<form action="{{ route('admin.tours.destroy', $tour->id) }}"
|
||||
method="POST"
|
||||
style="display: inline-block;">
|
||||
|
||||
@csrf
|
||||
@method('DELETE')
|
||||
|
||||
<button type="submit" title="حذف"
|
||||
<button type="submit"
|
||||
title="حذف"
|
||||
onclick="return confirm('آیا از حذف این تور مطمئن هستید؟')"
|
||||
|
||||
class="btn btn-outline-secondary btn-sm"><i class="far fa-trash-can"></i> </button>
|
||||
class="btn btn-outline-secondary btn-sm">
|
||||
<i class="far fa-trash-can"></i>
|
||||
</button>
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user