@php $disabled = false; //!in_array($order->status, ['order_preparing', null]) $document_types = ['offer_mail', 'location', 'technical_description', 'email', 'warranty', 'survey']; //'control' $document_model = 'Offer'; $document_id = $offer->id; $hide_document = ['supplier_approval', 'supplier_confirmation', 'supplier_orders', 'supplier_waybill', 'invoice']; $worksheet = App\Models\Worksheet::where('offer_id', $order->id)->get(); @endphp {{-- Route::currentRouteAction() --}} {{-- 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 {{-- Teszt email küldés modal - show_send_email_modal --}} {{-- --}} {{-- Emailes ügyfél válaszok kezelése --}} @include('process.messages.client_response', ['offer' => $offer]) {{-- A megrendelés ellenőrzésre/felmérésre/jóváhagyásra vár --}} @include('process.steps.components.check_messages', ['order' => $order]) {{-- A megrendelés fizetésre/számlázásra vár --}} @include('process.steps.components.payment_messages', ['order' => $order])
Dokumentumok
@include('process.tables.documents', [ 'documents' => $offer->getDocuments(), 'types' => $document_types, 'model' => $document_model, 'id' => $document_id, 'table_id' => 'dt_order', 'hide_document' => $hide_document, ])Beszállítói megrendelések
@include('process.tables.supplier_orders', ['supplier_orders' => $order->supplier_orders, 'table_id' => 'dt_order'])Felmérések
@include('process.tables.surveys', ['surveys' => $order->surveys, 'table_id' => 'dt_order'])Munkák
@include('process.tables.works', ['works' => $order->works, 'table_id' => 'dt_order'])Munkalapok / jegyzőkönyvek
@include('process.tables.worksheets', [ 'worksheet' => $worksheet, 'table_id' => 'dt_worksheet', 'hide_button' => ['worksheet_create'], ]) @endif @endif @if( $order->status == 'contract_preparing')Ügyfél válasza a szerződésre:
{{-- --}}