1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-14 15:13:29 +01:00
invoiceninja/resources/views/portal/ninja2020/quotes/show.blade.php

100 lines
4.0 KiB
PHP
Raw Normal View History

2020-03-23 18:10:42 +01:00
@extends('portal.ninja2020.layout.app')
@section('meta_title', ctrans('texts.entity_number_placeholder', ['entity' => ctrans('texts.quote'), 'entity_number' => $quote->number]))
2020-03-23 18:10:42 +01:00
@push('head')
<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 }}">
<meta name="accept-user-input" content="{{ $client->getSetting('accept_client_input_quote_approval') }}">
2021-10-11 15:06:21 +02:00
<script src="{{ asset('vendor/signature_pad@2.3.2/signature_pad.min.js') }}"></script>
@endpush
2020-03-23 18:10:42 +01:00
@section('body')
@if(!$quote->isApproved() && $client->getSetting('custom_message_unapproved_quote'))
@component('portal.ninja2020.components.message')
2023-04-22 01:48:14 +02:00
<pre>{{ $client->getSetting('custom_message_unapproved_quote') }}</pre>
@endcomponent
@endif
@if(in_array($quote->status_id, [\App\Models\Quote::STATUS_SENT, \App\Models\Quote::STATUS_DRAFT]))
<div class="mb-4">
@include('portal.ninja2020.quotes.includes.actions', ['quote' => $quote])
</div>
@elseif($quote->status_id == \App\Models\Quote::STATUS_CONVERTED)
2022-02-10 01:36:44 +01:00
<div class="bg-white shadow sm:rounded-lg mb-4">
<div class="px-4 py-5 sm:p-6">
<div class="sm:flex sm:items-start sm:justify-between">
<div>
<h3 class="text-lg leading-6 font-medium text-gray-900">
{{ ctrans('texts.approved') }}
</h3>
</div>
2022-04-06 04:22:13 +02:00
@if($quote->invoice()->exists())
2022-04-06 04:22:13 +02:00
<div class="mt-5 sm:mt-0 sm:ml-6 flex justify-end">
<div class="inline-flex rounded-md shadow-sm">
<a class="button button-primary bg-primary" href="/client/invoices/{{ $quote->invoice->hashed_id }}">{{ ctrans('texts.view_invoice') }}</a>
</div>
</div>
@endif
2022-02-10 01:36:44 +01:00
</div>
</div>
</div>
@elseif($quote->status_id == \App\Models\Quote::STATUS_APPROVED)
2022-02-10 01:36:44 +01:00
<div class="bg-white shadow sm:rounded-lg mb-4">
<div class="px-4 py-5 sm:p-6">
<div class="sm:flex sm:items-start sm:justify-between">
<div>
<h3 class="text-lg leading-6 font-medium text-gray-900">
{{ ctrans('texts.approved') }}
</h3>
</div>
</div>
</div>
</div>
2022-04-06 04:22:13 +02:00
2022-02-10 01:36:44 +01:00
@else
<div class="bg-white shadow sm:rounded-lg mb-4">
<div class="px-4 py-5 sm:p-6">
<div class="sm:flex sm:items-start sm:justify-between">
<div>
<h3 class="text-lg leading-6 font-medium text-gray-900">
{{ ctrans('texts.expired') }}
</h3>
</div>
</div>
</div>
</div>
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])
2023-10-01 02:06:40 +02:00
@livewire('pdf-slot', ['entity' => $quote, 'invitation' => $invitation, 'db' => $quote->company->db])
2023-07-16 04:40:32 +02:00
@endsection
@section('footer')
@include('portal.ninja2020.quotes.includes.user-input')
@include('portal.ninja2020.invoices.includes.terms', ['entities' => [$quote], 'variables' => $variables, 'entity_type' => ctrans('texts.quote')])
@include('portal.ninja2020.invoices.includes.signature')
@endsection
2020-03-23 18:10:42 +01:00
2023-07-16 04:40:32 +02:00
@push('head')
2023-09-04 16:07:34 +02:00
@vite('resources/js/clients/quotes/approve.js')
2023-07-16 04:40:32 +02:00
<script type="text/javascript" defer>
2022-02-10 01:36:44 +01:00
2023-07-16 04:40:32 +02:00
document.addEventListener('DOMContentLoaded', () => {
2022-02-10 01:36:44 +01:00
2024-07-10 08:06:13 +02:00
@if($key)
window.history.pushState({}, "", "{{ url("client/quote/{$key}") }}");
@endif
2022-02-10 01:36:44 +01:00
2023-07-16 04:40:32 +02:00
});
2022-02-10 01:36:44 +01:00
</script>
2023-07-16 04:40:32 +02:00
@endpush