@extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.entity_number_placeholder', ['entity' => ctrans('texts.quote'), 'entity_number' => $quote->number])) @push('head') @endpush @section('body') @if(!$quote->isApproved() && $client->getSetting('custom_message_unapproved_quote')) @component('portal.ninja2020.components.message')
{{ $client->getSetting('custom_message_unapproved_quote') }}
@endcomponent @endif @if(in_array($quote->status_id, [\App\Models\Quote::STATUS_SENT, \App\Models\Quote::STATUS_DRAFT]))
@include('portal.ninja2020.quotes.includes.actions', ['quote' => $quote])
@elseif($quote->status_id == \App\Models\Quote::STATUS_CONVERTED)

{{ ctrans('texts.approved') }}

@if($key) @endif
@if($quote->invoice()->exists()) @endif
@elseif($quote->status_id == \App\Models\Quote::STATUS_APPROVED)

{{ ctrans('texts.approved') }}

@if($key) @endif
@else

{{ ctrans('texts.expired') }}

@if($key) @endif
@endif @include('portal.ninja2020.components.entity-documents', ['entity' => $quote]) @livewire('pdf-slot', ['entity' => $quote, 'invitation' => $invitation, 'db' => $quote->company->db]) @endsection @section('footer') @include('portal.ninja2020.quotes.includes.user-input') @include('portal.ninja2020.invoices.includes.terms', ['entities' => [$quote], 'entity_type' => ctrans('texts.quote')]) @include('portal.ninja2020.invoices.includes.signature') @endsection @push('head') @vite('resources/js/clients/quotes/approve.js') @endpush