@extends('portal.ninja2020.layout.app') @section('meta_title', ctrans('texts.entity_number_placeholder', ['entity' => ctrans('texts.quote'), 'entity_number' => $quote->number])) @push('head') @include('portal.ninja2020.components.no-cache') @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]) @include('portal.ninja2020.components.pdf-viewer', ['entity' => $quote, 'invitation' => $invitation]) @include('portal.ninja2020.invoices.includes.terms', ['entities' => [$quote], 'entity_type' => ctrans('texts.quote')]) @include('portal.ninja2020.invoices.includes.signature') @endsection @section('footer') @endsection