@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])

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

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, ])
@if(!in_array($order->status, [ 'contract_preparing', 'awaiting_approval', 'contract_sent', 'contract_rejected', ])) @can('show-payment')
Fizetések/Számlák
@include('process.tables.payments', ['payments' => $order->payments, 'table_id' => 'dt_order'])
@endcan @endif @if(!in_array($order->status, [ 'contract_preparing', 'awaiting_approval', 'contract_sent', 'contract_rejected', 'contract_signed', 'advance_invoice_sent', ])) @can('show-supplier-offer')

Beszállítói megrendelések

@include('process.tables.supplier_orders', ['supplier_orders' => $order->supplier_orders, 'table_id' => 'dt_order'])
@endcan @endif

Felmérések

@include('process.tables.surveys', ['surveys' => $order->surveys, 'table_id' => 'dt_order'])
@if(!in_array($order->status, [ 'contract_preparing', 'awaiting_approval', 'contract_sent', 'contract_rejected', 'contract_signed', 'advance_invoice_sent', 'materials_received', 'material_invoice_sent', ]) || $order->works->count() != 0)

Munkák

@include('process.tables.works', ['works' => $order->works, 'table_id' => 'dt_order'])
@if($worksheet->count() != 0)

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')
@endif @if( $order->status == 'contract_sent')

Ügyfél válasza a szerződésre:

@csrf
{{--
@csrf
--}}
@endif @endif @if ($order && $order->id && !$order->cancellation_status) @endif @if ($order && $order->id && $order->cancellation_status == 'completed') @endif