From 17cece598be97b193f0883919d3445a660f0bf41 Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Mon, 21 May 2018 12:05:22 -0500 Subject: [PATCH] Fix typos and missing lang --- app/Http/Controllers/Frontend/FlightController.php | 2 +- resources/views/layouts/default/flights/scripts.blade.php | 4 ++-- resources/views/layouts/default/pireps/fares.blade.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/Frontend/FlightController.php b/app/Http/Controllers/Frontend/FlightController.php index f23780cf..a974f3d7 100644 --- a/app/Http/Controllers/Frontend/FlightController.php +++ b/app/Http/Controllers/Frontend/FlightController.php @@ -98,7 +98,7 @@ class FlightController extends Controller $saved_flights = $flights->pluck('id')->toArray(); return view('flights.index', [ - 'title' => trans_choice('frontend.flights.mybid', 2), + 'title' => trans_choice('flights.mybid', 2), 'airlines' => $this->airlineRepo->selectBoxList(true), 'airports' => $this->airportRepo->selectBoxList(true), 'flights' => $flights, diff --git a/resources/views/layouts/default/flights/scripts.blade.php b/resources/views/layouts/default/flights/scripts.blade.php index 4c224b8a..c979f710 100644 --- a/resources/views/layouts/default/flights/scripts.blade.php +++ b/resources/views/layouts/default/flights/scripts.blade.php @@ -26,11 +26,11 @@ $(document).ready(function () { if(params.method === 'DELETE') { console.log('successfully removed flight'); btn.removeClass(class_name); - alert('@lang("frontend.flights.bidremoved")'); + alert('@lang("flights.bidremoved")'); } else { console.log('successfully saved flight'); btn.addClass(class_name); - alert('@lang("frontend.flights.bidadded")'); + alert('@lang("flights.bidadded")'); } }) .catch(error => { diff --git a/resources/views/layouts/default/pireps/fares.blade.php b/resources/views/layouts/default/pireps/fares.blade.php index 14724448..5ee31199 100644 --- a/resources/views/layouts/default/pireps/fares.blade.php +++ b/resources/views/layouts/default/pireps/fares.blade.php @@ -1,7 +1,7 @@ @if($aircraft)
-  {{ trans_coice('frontend.pireps.fare', 2) }} +  {{ trans_choice('pireps.fare', 2) }}
@foreach($aircraft->subfleet->fares as $fare)