@component('laravel-crm::components.card') @component('laravel-crm::components.card-header') @slot('title') {{ $quote->title }} @endslot @slot('actions') @php (!\VentureDrake\LaravelCrm\Http\Helpers\CheckAmount\subTotal($quote) || ! \VentureDrake\LaravelCrm\Http\Helpers\CheckAmount\total($quote)) ? $quoteError = true : $quoteError = false; @endphp @include('laravel-crm::partials.return-button',[ 'model' => $quote, 'route' => 'quotes' ]) | @if(! $quote->order && ! $quoteError) @livewire('send-quote',[ 'quote' => $quote ]) @endif @can('edit crm quotes') @if($quoteError) Error with quote, check amounts @else @if(!$quote->accepted_at && !$quote->rejected_at) {{ ucfirst(__('laravel-crm::lang.mark_as_accepted')) }} {{ ucfirst(__('laravel-crm::lang.mark_as_rejected')) }} @elseif($quote->accepted_at && $quote->orders()->count() > 0 && ! $quote->orderComplete()) @hasordersenabled {{ ucfirst(__('laravel-crm::lang.create_order')) }} @endhasordersenabled @elseif($quote->accepted_at && $quote->orders()->count() < 1) {{ ucfirst(__('laravel-crm::lang.unaccept')) }} @hasordersenabled {{ ucfirst(__('laravel-crm::lang.create_order')) }} @endhasordersenabled @elseif($quote->rejected_at) {{ ucfirst(__('laravel-crm::lang.unreject')) }} @endif @endif @endcan @can('view crm quotes') @if(! $quoteError) {{ ucfirst(__('laravel-crm::lang.download')) }} @endif @endcan @include('laravel-crm::partials.navs.activities', [ 'orders' => $orders ]) | @can('edit crm quotes') @if(! $quote->accepted_at) @endif @endcan @can('delete crm quotes') @endcan @endslot @endcomponent @component('laravel-crm::components.card-body')
@if($quote->client){{ $quote->client->name }}@endif
@if($quote->organisation){{ $quote->organisation->name }}@endif
{{ ($organisation_address) ? \VentureDrake\LaravelCrm\Http\Helpers\AddressLine\addressSingleLine($organisation_address) : null }}
@if($quote->person){{ $quote->person->name }}@endif
@isset($email){{ $email->address }} ({{ ucfirst($email->type) }})
@endisset @isset($phone){{ $phone->number }} ({{ ucfirst($phone->type) }})
@endisset @can('view crm products')| {{ ucfirst(__('laravel-crm::lang.item')) }} | {{ ucfirst(__('laravel-crm::lang.price')) }} | {{ ucfirst(__('laravel-crm::lang.quantity')) }} | {{ $taxName }} | {{ ucfirst(__('laravel-crm::lang.amount')) }} |
|---|---|---|---|---|
|
{{ $quoteProduct->product->name }}
@if($quoteProduct->product->code)
{{ $quoteProduct->product->code }} @endif |
{{ money($quoteProduct->price ?? null, $quoteProduct->currency) }} | {{ $quoteProduct->quantity }} | {{ money($quoteProduct->tax_amount ?? null, $quoteProduct->currency) }} | @if(! \VentureDrake\LaravelCrm\Http\Helpers\CheckAmount\lineAmount($quoteProduct)) {{ money($quoteProduct->amount ?? null, $quoteProduct->currency) }} @else {{ money($quoteProduct->amount ?? null, $quoteProduct->currency) }} @endif |
|
{{ ucfirst(__('laravel-crm::lang.comments')) }} {{ $quoteProduct->comments }} |
||||
| {{ ucfirst(__('laravel-crm::lang.sub_total')) }} | @if(! \VentureDrake\LaravelCrm\Http\Helpers\CheckAmount\subTotal($quote)) {{ money($quote->subtotal, $quote->currency) }} @else {{ money($quote->subtotal, $quote->currency) }} @endif | |||
| {{ ucfirst(__('laravel-crm::lang.discount')) }} | {{ money($quote->discount, $quote->currency) }} | |||
| {{ ucfirst(__('laravel-crm::lang.tax')) }} | @if(! \VentureDrake\LaravelCrm\Http\Helpers\CheckAmount\tax($quote)) {{ money($quote->tax, $quote->currency) }} @else {{ money($quote->tax, $quote->currency) }} @endif | |||
| {{ ucfirst(__('laravel-crm::lang.adjustment')) }} | {{ money($quote->adjustments, $quote->currency) }} | |||
| {{ ucfirst(__('laravel-crm::lang.total')) }} | @if(! \VentureDrake\LaravelCrm\Http\Helpers\CheckAmount\total($quote)) {{ money($quote->total, $quote->currency) }} @else {{ money($quote->total, $quote->currency) }} @endif | |||