@extends('layouts.main') @section('title', 'Okis 3.0 | Auftrag bearbeiten') @section('content')
@includeIf('layouts.components.container_header', [ 'title_primary' => 'Erfassungstool', 'title_secondary' => $type, 'btn_back' => route('home'), ])
@includeIf('flash_message', ['alert_type' => 'orders']) @if ($type === 'Archiv')
@includeIf('layouts.components.card_header', [ 'title' => 'Archiviert', 'label_pill' => count($orders) > 0 ? count($orders) : '', 'label_pill_color' => 'danger', ])
@else
@includeIf('layouts.components.card_header', [ 'title' => 'neu Eingetroffen', 'label_pill' => count($orders) > 0 ? count($orders) : '', 'label_pill_color' => 'danger', ])
@includeIf('layouts.components.card_header', [ 'title' => 'Freigegeben' ])
@foreach ($orders as $order) @if ($order->last_cycle_progress > 0) {{ $order->id }} @endif @endforeach
@endif
@if (false)
@includeIf('layouts.components.btn_status', [ 'form_route' => route('orders.update', $order->id), 'select_id' => $order->status->value, 'allow_statuses' => [ 1 => 'Aktiv', 0 => 'Inaktiv', // 2 => 'Storniert', 3 => 'Abgebrochen', // 4 => 'Reaktiviert', 5 => 'Archiviert', // 6 => 'Abgeschlossen', // 7 => 'Fehlerhaft', ], ])
@if ( !empty($order->status_description) )
@includeIf('layouts.components.icon', [ 'name' => 'info', 'width' => 30, 'attr' => ' style="margin-top= 0px;" ', 'class' => 'me-1 bg-light rounded', 'title' => $order->status_description, ])
@endif
  • Kunde {{ $customer->KuNr .' | ' .$customer->company }} aufrufen
  • @php $contact = $customer->contacts()->where('contact_type', 'main')->first(); @endphp @if (!empty($contact))
  • @if ( !empty($contact->phonenumber) ) kunden anrufen @endif @if ( !empty($contact->mobile) ) kunden anrufen @endif @if ( !empty($contact->email) ) kunden schreiben @endif
  • @endif
  • Akt. Zyklus {{ $order->last_cycle()->cycle }}

    @includeIf('layouts.components.prozess', [ 'status' => $order->last_cycle()->progress(), 'color' => 'success', 'css' => 'p-0 rounded-1', 'height' => 15, ])
  • @csrf @method('PUT')
    @includeIf('layouts.components.inputs', [ 'input_id' => "xml", 'label' => 'XML', 'placeholder' => 'XML', 'value' => trim($order->xml) ?? '', ])
    @includeIf('layouts.components.inputs', [ 'input_type' => 'checkbox', 'input_id' => "kulanz", 'check_label' => 'Kulanz', 'value' => $order->kulanz ?? '', 'margin_top' => 32, 'label_class' => '', ])
    @includeIf('layouts.components.btn_save', [ 'sticky_bottom' => false, 'text' => 'Änderungen übernehmen', 'class' => 'btn-sm mt-3 d-none', ])
@includeIf('layouts.components.card_header', [ 'title' => 'Ordner / Ansicht', 'collapse_id' => 'collapseFolder', ])
@includeIf('layouts.components.card_header', [ 'title' => 'Belege', 'collapse_id' => 'collapseReceipts', 'route' => 'orders.create', ])
@includeIf('layouts.components.card_header', [ 'title' => 'Lieferscheine', 'collapse_id' => 'collapseDelivery', 'route' => 'orders.create', ])
{{-- Path --}}
@include('flash_message')
@if ( !request('path') || request('path') === '' || request('path') === $path[1] ) @includeif('orders._path_'.$path[1]) @endif @for ($i = 2; $i <= count($path); $i++) @if ( request('path') && request('path') != '' && request('path') === $path[$i] ) @includeif('orders._path_'.$path[$i]) @endif @endfor
{{-- END Path --}}
{{-- END COL 9 --}} @endif @endsection