{{-- HEADER --}} {{-- SEARCH --}} {{-- ACTIONS --}} @can('create crm quotes') @endcan {{-- TABLE --}} @scope('cell_labels', $quote) @foreach($quote->labels as $label) @endforeach @endscope @scope('cell_pipeline_stage', $quote) @if($quote->pipelineStage) @endif @endscope @scope('actions', $quote) @php (!\VentureDrake\LaravelCrm\Http\Helpers\CheckAmount\subTotal($quote) || ! \VentureDrake\LaravelCrm\Http\Helpers\CheckAmount\total($quote)) ? $quoteError = true : $quoteError = false; @endphp
@if(! $quote->order && !$quoteError) @endif @can('edit crm quotes') @if($quoteError) @else @if(!$quote->accepted_at && !$quote->rejected_at) @elseif($quote->accepted_at && $quote->orders()->count() > 0 && ! $quote->orderComplete()) @hasordersenabled @endhasordersenabled @elseif($quote->accepted_at && $quote->orders()->count() < 1) @hasordersenabled @endhasordersenabled @elseif($quote->rejected_at) @endif @endif @endcan @can('view crm quotes') @if(! $quoteError) @endif @endcan @can('edit crm quotes') @if(! $quote->accepted_at) @endif @endcan @can('delete crm quotes') @endcan
@endscope
{{-- FILTERS --}}
{{-- ACTIONS --}}