diff --git a/app/Http/Controllers/FlightController.php b/app/Http/Controllers/FlightController.php index bbd7792..d4c6452 100644 --- a/app/Http/Controllers/FlightController.php +++ b/app/Http/Controllers/FlightController.php @@ -31,8 +31,5 @@ class FlightController extends Controller return view('flights.index', compact('flights')); } - public function show() - { - } } diff --git a/bootstrap/app.php b/bootstrap/app.php index f7a6ae4..ddb22cc 100644 --- a/bootstrap/app.php +++ b/bootstrap/app.php @@ -3,7 +3,7 @@ use Illuminate\Foundation\Application; use Illuminate\Foundation\Configuration\Exceptions; use Illuminate\Foundation\Configuration\Middleware; - +use Illuminate\Http\Request; return Application::configure(basePath: dirname(__DIR__)) ->withRouting( web: [ @@ -15,7 +15,8 @@ return Application::configure(basePath: dirname(__DIR__)) health: '/up', ) ->withMiddleware(function (Middleware $middleware) { - // + $middleware->redirectGuestsTo(fn(Request $request)=>route('auth.login.index')); + }) ->withExceptions(function (Exceptions $exceptions) { // diff --git a/resources/views/components/flightcard.blade.php b/resources/views/components/flightcard.blade.php index 8b83397..4179b1f 100644 --- a/resources/views/components/flightcard.blade.php +++ b/resources/views/components/flightcard.blade.php @@ -2,12 +2,12 @@
- {{ $card->flight_number }} - + +

- شماره پرواز: {{ $card->flight_number }} + شماره پرواز: {{ $card->flight_number }}

{{ $card->airline->name ?? '' }} diff --git a/resources/views/flights/index.blade.php b/resources/views/flights/index.blade.php index 9479a00..bec059b 100644 --- a/resources/views/flights/index.blade.php +++ b/resources/views/flights/index.blade.php @@ -29,6 +29,8 @@
+ +
{{ $flight->airline->name ?? '' }}
@@ -75,7 +77,7 @@
{{ number_format($flight->price) }} تومان
- اکنون ثبت کن + اکنون ثبت کن
@@ -114,7 +116,7 @@
-
+
a
{{ $flight->start_time_fa }}

{{ $flight->full_date_fa }}

{{ $flight->airport->city ?? '' }} diff --git a/resources/views/index.blade.php b/resources/views/index.blade.php index c3f9bf8..4638872 100644 --- a/resources/views/index.blade.php +++ b/resources/views/index.blade.php @@ -259,7 +259,7 @@
@foreach($tours as $card) - @include('components.tourcard') + @include('components.tourcard' , ['tour' => $card]) @endforeach @@ -283,7 +283,7 @@
@foreach($flights as $card) - @include('components.flightcard') + @include('components.flightcard' , ['flight' => $card]) @endforeach