@extends('layouts.app') @section('link') @endsection @section('style') @endsection @section('content')

Промяна на поръчка

{{ method_field('PATCH') }} {{ csrf_field() }}
@if ($errors->has('technician_id')) {{ $errors->first('technician_id') }} @endif
@if(auth()->user()->role_id==1)
@foreach(__('texte.order_statuses_'.auth()->user()->role_id) as $key=>$value) @if($key<7)
@endif @endforeach @if ($errors->has('status')) {{ $errors->first('status') }} @endif
@else @endif
@if ($errors->has('note')) {{ $errors->first('note') }} @endif
@foreach($order_products as $index => $order_product)
@if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif
@if ($errors->has('product')) {{ $errors->first('product') }} @endif
@if ($errors->has('measure')) {{ $errors->first('measure') }} @endif
@if ($errors->has('quantity')) {{ $errors->first('quantity') }} @endif
producer)}}' autocomplete="off"> @if ($errors->has('producer')) {{ $errors->first('producer') }} @endif
mark)}}' autocomplete="off"> @if ($errors->has('mark')) {{ $errors->first('mark') }} @endif
size)}}' autocomplete="off"> @if ($errors->has('size')) {{ $errors->first('size') }} @endif
color)}}' autocomplete="off"> @if ($errors->has('color')) {{ $errors->first('color') }} @endif
@endforeach
@if(isset($order->file)) @endif
file) ? 'hidden' : ''}}>
@if ($errors->has('upload_file')) {{ $errors->first('upload_file') }} @endif
@if(auth()->user()->role_id==4 || auth()->user()->role_id==7)
@if ($errors->has('supplier_id')) {{ $errors->first('supplier_id') }} @endif
@endif
@if(auth()->user()->role_id==2 || auth()->user()->role_id==3 || auth()->user()->role_id==4 || auth()->user()->role_id==7) @if(auth()->user()->role_id==2 || auth()->user()->role_id==3) @endif @if(((auth()->user()->role_id==4 || auth()->user()->role_id==7) && ($order->status==4 || $order->status==5) && count($order->chief_products)>0) || (auth()->user()->role_id==3 && ($order->status==2 || $order->status==3) && count($order->technician_products)>0)) @endif @else @endif
@endsection