@php $disabled = false; // !in_array($offer->status, ['offer_preparing', null]); $document_types = []; // 'offer_mail', 'location', 'technical_description', 'email', 'warranty', 'survey' // 'control' $document_model = 'Offer'; $document_id = $offer->id; @endphp {{-- Jogosultságok alapján a dokumentum típusok leküldése --}} @can('show-document-plan') @php array_push($document_types, 'plan') @endphp @endcan @can('show-document-offer_mail') @php array_push($document_types, 'offer_mail') @endphp @endcan @can('show-document-location') @php array_push($document_types, 'location') @endphp @endcan @can('show-document-worksheet') @php array_push($document_types, 'worksheet') @endphp @endcan @can('show-document-handover_report') @php array_push($document_types, 'handover_report') @endphp @endcan @can('show-document-technical_description') @php array_push($document_types, 'technical_description') @endphp @endcan @can('show-document-email') @php array_push($document_types, 'email') @endphp @endcan @can('show-document-warranty') @php array_push($document_types, 'warranty') @endphp @endcan @can('show-document-survey') @php array_push($document_types, 'survey') @endphp @endcan @can('show-document-other') @php array_push($document_types, 'other') @endphp @endcan @if (isset($offer->id) && $offer->client_response) @php switch ($offer->client_response) { case 'accepted': $message = 'Az ügyfél elfogadta az ajánlatot!'; break; case 'request_modification': $message = 'Az ügyfél visszahívást kér!'; break; case 'request_survey': $message = 'Az ügyfél felmérést kér!'; break; case 'rejected': $message = 'Az ügyfél elállt a megrendeléstől!'; break; default: $message = 'Az ügyfél visszahívást kér!'; break; } @endphp @endif

@include('process.forms.offer')
@if($offer->id)

Felmérések

@include('process.tables.surveys', ['surveys' => $offer->surveys, 'table_id' => 'dt_offer'])

Beszállítói Ajánlatok

{{-- @include('process.tables.supplier_offers', ['supplier_offers' => $offer->supplier_offers, 'create_button' => false]) --}} @include('process.tables.supplier_offers', ['supplier_offers' => App\Models\SupplierOffer::OnlySupplierOffers($offer->id)->get(), 'create_button' => false, 'table_id' => 'dt_offer'])

Dokumentumok

@include('process.tables.documents', ['documents' => $offer->getDocuments(), 'types' => $document_types, 'model' => $document_model, 'id' => $document_id, 'table_id' => 'dt_offer'])
@if( $offer->status == 'offer_preparing' || $offer->status == 'arrived_from_web')
@if ($offer->status == 'arrived_from_web')
@csrf
@endif
@csrf
@endif @if( $offer->status == 'offer_sent')

Ügyfél válasza az ajánlatra:

@csrf
@csrf {{-- --}}
@csrf
@endif @endif