diff --git a/app/Http/Controllers/TourController.php b/app/Http/Controllers/TourController.php index ca40698..ac94201 100644 --- a/app/Http/Controllers/TourController.php +++ b/app/Http/Controllers/TourController.php @@ -1,12 +1,10 @@ status !== TourStatus::ENABLE->value, 404); diff --git a/resources/views/components/tour.blade.php b/resources/views/components/tour.blade.php index 6f5560a..565f0cc 100644 --- a/resources/views/components/tour.blade.php +++ b/resources/views/components/tour.blade.php @@ -1,12 +1,41 @@
-
-
- - - + + + @if(auth()->check()) + +
+ @csrf + + +
+ + @else + + + + + @endif +
@@ -24,27 +53,33 @@

+ + سفر {{ $tour->duration }} روز + @if($tour->duration > 1) و {{ $tour->duration - 1 }} شب @endif +

+

{{ $tour->summary }}

-
+
از + {{ number_format($tour->price) }} تومان @@ -52,10 +87,12 @@
@@ -64,4 +101,3 @@
-