@php $disabled = false; $document_types = ['issue_ticket', 'offer_mail', 'location', 'technical_description', 'email', 'warranty', 'survey']; // feltölthető típusok $document_model = 'IssueTicket'; // feltöltésnél melyik modelhez rendelje $documents = new App\Models\Document; $document_id = $issue_ticket->id; $can_work_organize = true; if($issue_ticket->completed == true || $issue_ticket->type == 'not_a_real_issue') $can_work_organize = false; $worksheet = App\Models\Worksheet::where('id', $issue_ticket->worksheet_id); @endphp

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

Dokumentumok

@include('process.tables.documents', [ 'documents' => $documents->where('target_type', 'App\Models\\'.$document_model)->where('target_id', $issue_ticket->id)->get(), 'types' => $document_types, 'model' => $document_model, 'id' => $document_id, 'table_id' => 'dt_issue_ticket', 'hide_button' => ['document_migration'], ])
@can('show-supplier-offer')

Beszállítói megrendelések

@include('process.tables.supplier_orders', ['supplier_orders' => $order->supplier_orders, 'table_id' => 'dt_issue_order', 'issue_ticket_id' => $issue_ticket->id])
@endcan

Munkák

@include('process.tables.works', ['works' => $order->works, 'table_id' => 'dt_issue_work', 'issue_ticket_id' => $issue_ticket->id])
@if($issue_ticket->worksheet_id)

Munkalapok / jegyzőkönyvek

@include('process.tables.worksheets', [ 'worksheet' => $worksheet->get(), 'table_id' => 'dt_issue_ticket_worksheet', 'hide_button' => ['worksheet_create'], ]) @endif
@csrf
@push('scripts') @endpush @endif