2020-03-23 18:10:42 +01:00
|
|
|
@extends('portal.ninja2020.layout.app')
|
2021-01-14 03:57:05 +01:00
|
|
|
@section('meta_title', ctrans('texts.entity_number_placeholder', ['entity' => ctrans('texts.quote'), 'entity_number' => $quote->number]))
|
2020-03-23 18:10:42 +01:00
|
|
|
|
2020-04-03 22:12:12 +02:00
|
|
|
@push('head')
|
2021-05-16 01:41:12 +02:00
|
|
|
<meta name="pdf-url" content="{{ asset($quote->pdf_file_path(null, 'url', true)) }}">
|
2020-04-03 22:12:12 +02:00
|
|
|
<script src="{{ asset('js/vendor/pdf.js/pdf.min.js') }}"></script>
|
2021-05-10 13:17:46 +02:00
|
|
|
|
|
|
|
<meta name="show-quote-terms" content="{{ $settings->show_accept_quote_terms ? true : false }}">
|
|
|
|
<meta name="require-quote-signature" content="{{ $client->company->account->hasFeature(\App\Models\Account::FEATURE_INVOICE_SETTINGS) && $settings->require_quote_signature }}">
|
|
|
|
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/signature_pad@2.3.2/dist/signature_pad.min.js"></script>
|
2020-04-03 22:12:12 +02:00
|
|
|
@endpush
|
|
|
|
|
2020-03-23 18:10:42 +01:00
|
|
|
@section('body')
|
|
|
|
|
2020-11-16 15:37:09 +01:00
|
|
|
@if(!$quote->isApproved() && $client->getSetting('custom_message_unpaid_invoice'))
|
2020-04-13 03:48:23 +02:00
|
|
|
@component('portal.ninja2020.components.message')
|
2020-11-16 15:37:09 +01:00
|
|
|
{{ $client->getSetting('custom_message_unpaid_invoice') }}
|
2020-04-13 03:48:23 +02:00
|
|
|
@endcomponent
|
|
|
|
@endif
|
|
|
|
|
2021-07-14 14:30:24 +02:00
|
|
|
@if($quote->status_id === \App\Models\Quote::STATUS_SENT)
|
2021-01-14 13:29:46 +01:00
|
|
|
<div class="mb-4">
|
|
|
|
@include('portal.ninja2020.quotes.includes.actions', ['quote' => $quote])
|
|
|
|
</div>
|
2021-07-14 14:30:24 +02:00
|
|
|
@else
|
|
|
|
<p class="text-right text-gray-900 text-sm mb-4">{{ ctrans('texts.quotes_with_status_sent_can_be_approved') }}</p>
|
2020-03-23 18:10:42 +01:00
|
|
|
@endif
|
|
|
|
|
2021-06-30 20:41:06 +02:00
|
|
|
@include('portal.ninja2020.components.entity-documents', ['entity' => $quote])
|
2021-07-21 13:01:53 +02:00
|
|
|
@include('portal.ninja2020.components.pdf-viewer', ['entity' => $quote])
|
2021-05-10 13:17:46 +02:00
|
|
|
@include('portal.ninja2020.invoices.includes.terms', ['entities' => [$quote], 'entity_type' => ctrans('texts.quote')])
|
|
|
|
@include('portal.ninja2020.invoices.includes.signature')
|
2020-04-03 22:12:12 +02:00
|
|
|
@endsection
|
2020-03-23 18:10:42 +01:00
|
|
|
|
2020-04-03 22:12:12 +02:00
|
|
|
@section('footer')
|
2021-05-10 13:17:46 +02:00
|
|
|
<script src="{{ asset('js/clients/quotes/approve.js') }}"></script>
|
2020-03-23 18:10:42 +01:00
|
|
|
@endsection
|