@extends('layouts.admin') @section('main-content') @php $work = (isset($id) && $id) ? App\Models\Work::where('id', $id)->first() : null; $documents = new App\Models\Document; $document_types = ['calendar_task']; $document_model = 'Work'; $document_id = $work ? $work->id : null; $documents = $work ? $documents->where('target_type', 'App\Models\\'.$document_model)->where('target_id', $document_id)->get() : null; @endphp
Feladat szervezése
{{-- Adatok & Form --}}
@csrf @if($work) @method('PATCH') @endif
@if($work) Részletek @else
@endif
@error('start_date') {{ $message }} @enderror
@error('end_date') {{ $message }} @enderror
{{-- Újra szervezésre került (dátum) --}} @if($work)
@include('comments.panel', ['comment_target' => $work])
@endif {{-- Járművek szerkesztése --}}

Járművek szerkesztése

{{-- Jármű kiválasztása szerkesztésre --}} @if($work)
@include('work.work_vehicle_select', ['work' => $work])
{{-- Dolgozók szerkesztése a járműben --}}
@endif
@if(!$work) @endif
@if($work)

Dokumentumok

@include('process.tables.documents', [ 'documents' => $documents, 'types' => $document_types, 'model' => $document_model, 'id' => $document_id, 'table_id' => 'dt_task', 'hide_button' => ['document_migration'], ])
@endif
{{-- Naptár --}}
@endsection @push('scripts') @endpush