diff --git a/app/Http/Controllers/ClientPortal/QuoteController.php b/app/Http/Controllers/ClientPortal/QuoteController.php index 751b359ae893..8421ea3310b0 100644 --- a/app/Http/Controllers/ClientPortal/QuoteController.php +++ b/app/Http/Controllers/ClientPortal/QuoteController.php @@ -37,9 +37,15 @@ class QuoteController extends Controller */ public function show(ShowQuoteRequest $request, Quote $quote) { - return $this->render('quotes.show', [ + $data = [ 'quote' => $quote, - ]); + ]; + + if ($request->query('mode') === 'fullscreen') { + return $this->render('quotes.show.fullscreen', $data); + } + + return $this->render('quotes.show', $data); } public function bulk(ProcessQuotesInBulkRequest $request) diff --git a/resources/views/portal/ninja2020/invoices/show/fullscreen.blade.php b/resources/views/portal/ninja2020/invoices/show/fullscreen.blade.php index b68b08ea09b7..4597fa5a8f10 100644 --- a/resources/views/portal/ninja2020/invoices/show/fullscreen.blade.php +++ b/resources/views/portal/ninja2020/invoices/show/fullscreen.blade.php @@ -2,34 +2,35 @@ @section('meta_title', ctrans('texts.view_invoice')) @section('body') -@if($invoice->isPayable()) -
- @csrf -
-
-
-
-

- {{ ctrans('texts.unpaid') }} -

-
-

- {{ ctrans('texts.invoice_still_unpaid') }} - -

+ @if($invoice->isPayable()) + + @csrf +
+
+
+
+

+ {{ ctrans('texts.unpaid') }} +

+
+

+ {{ ctrans('texts.invoice_still_unpaid') }} + +

+
-
-
-
- - - +
+
+ + + +
-
- -@endif - + + @endif + + @endsection \ No newline at end of file diff --git a/resources/views/portal/ninja2020/quotes/show.blade.php b/resources/views/portal/ninja2020/quotes/show.blade.php index ba2873ed8dc2..c7ad111ba703 100644 --- a/resources/views/portal/ninja2020/quotes/show.blade.php +++ b/resources/views/portal/ninja2020/quotes/show.blade.php @@ -88,7 +88,7 @@ diff --git a/resources/views/portal/ninja2020/quotes/show/fullscreen.blade.php b/resources/views/portal/ninja2020/quotes/show/fullscreen.blade.php new file mode 100644 index 000000000000..be74d59f60f3 --- /dev/null +++ b/resources/views/portal/ninja2020/quotes/show/fullscreen.blade.php @@ -0,0 +1,36 @@ +@extends('portal.ninja2020.layout.clean') +@section('meta_title', ctrans('texts.view_quote')) + +@section('body') + @if(!$quote->isApproved()) +
+ @csrf + + +
+
+
+
+

+ {{ ctrans('texts.waiting_for_approval') }} +

+
+

+ {{ ctrans('texts.quote_still_not_approved') }} +

+
+
+
+
+ + +
+
+
+
+
+
+ @endif + + +@endsection \ No newline at end of file