@extends('layouts.app') @section('content')

Рекламация

@csrf @include('partials.input', ['name' => 'order_name', 'title' => 'Площадка', 'disabled' => true, 'value' => $reclamation->order->common_name ?? '']) @include('partials.select', ['name' => 'status_id', 'title' => 'Статус', 'options' => $statuses, 'value' => $reclamation->status_id ?? old('status_id')]) @include('partials.select', ['name' => 'user_id', 'title' => 'Менеджер', 'options' => $users, 'value' => $reclamation->user_id ?? old('user_id') ?? auth()->user()->id]) @include('partials.input', ['name' => 'create_date', 'title' => 'Дата создания', 'type' => 'date', 'required' => true, 'value' => $reclamation->create_date ?? date('Y-m-d')]) @include('partials.input', ['name' => 'finish_date', 'title' => 'Дата завершения', 'type' => 'date', 'required' => true, 'value' => $reclamation->finish_date ?? date('Y-m-d', strtotime('+30 days'))]) @include('partials.select', ['name' => 'reason', 'title' => 'Причина', 'size' => 6, 'value' => $reclamation->reason ?? '', 'options' => ['Вандализм', 'Гарантия', 'Сервисное обслуживание'], 'key_as_val' => true]) @include('partials.textarea', ['name' => 'guarantee', 'title' => 'Гарантии', 'size' => 6, 'value' => $reclamation->guarantee ?? '']) @include('partials.textarea', ['name' => 'whats_done', 'title' => 'Что сделано', 'size' => 6, 'value' => $reclamation->whats_done ?? '']) @include('partials.submit', ['name' => 'Сохранить', 'offset' => 5])
@foreach($reclamation->skus as $p) @endforeach
Картинка МАФ Тип Номер заказа МАФ RFID Заводской номер Дата производства
@if($p->product->image) @endif {!! $p->product->article !!}
каталог
{!! $p->product->nomenclature_number !!} @if($p->maf_order_id) {{ $p->maf_order->order_number }} @endif {{ $p->rfid }} {{ $p->factory_number }} {{ $p->manufacture_date }}
Детали замен ({{ $reclamation->details->count() }})
@csrf
@foreach($reclamation->details as $detail)
@endforeach
Для удаления детали поставьте в количество 0 Добавить строку
@if($errors->any()) @dump($errors->all()) @endif

Документы
@csrf
@foreach($reclamation->documents as $document)
{{ $document->original_name }} @if(hasRole('admin')) @endif
@csrf @method('DELETE')
@endforeach

Акты
@csrf
@foreach($reclamation->acts as $act)
{{ $act->original_name }} @if(hasRole('admin')) @endif
@csrf @method('DELETE')
@endforeach

Фотографии проблемы ({{ $reclamation->photos_before->count() }}) @if($reclamation->photos_before->count()) Скачать все @endif
@csrf
@foreach($reclamation->photos_before as $photo)
@if(hasRole('admin')) @endif
@csrf @method('DELETE')
@endforeach

Фотографии после устранения ({{ $reclamation->photos_after->count() }}) @if($reclamation->photos_after->count()) Скачать все @endif
@csrf
@foreach($reclamation->photos_after as $photo)
@if(hasRole('admin')) @endif
@csrf @method('DELETE')
@endforeach
@endsection