@extends('layouts.app', ['title' => __('Orders')]) @section('content')

{{ __('Item Management') }}

@if(auth()->user()->hasRole('owner')) {{ __('Back to items') }} {{ __('Copy URL') }} @elseif(auth()->user()->hasRole('admin')) {{ __('Back to items') }} @endif @if (route::has('cloner.cloneitem')) {{ __('Clone it') }} @endif

@include('partials.flash')
{{ __('Item information') }}
@csrf @method('put')
@if ($errors->has('item_name')) {{ $errors->first('item_name') }} @endif
@include('partials.select', ['name'=>"Category",'id'=>"category_id",'placeholder'=>"Select category",'data'=>$categories,'required'=>true, 'value'=>$item->category_id])
@if ($errors->has('item_description')) {{ $errors->first('item_description') }} @endif
@if ($errors->has('item_price')) {{ $errors->first('item_price') }} @endif
@include('partials.input',['id'=>'discounted_price','name'=>__('Discounted price'),'placeholder'=>__('0'),'value'=>$item->discounted_price,'required'=>false,'type'=>'number']) @if ($restorant->getConfig('hide_tax_input',"false")!="false") @include('partials.input',['id'=>'vat','name'=>__('VAT percentage( calculated into item price )'),'placeholder'=>__('Item VAT percentage'),'value'=>$item->vat==""?$restorant->getConfig('default_tax_value',0):$item->vat,'required'=>false,'type'=>'hidden']) @else @include('partials.input',['id'=>'vat','name'=>__('VAT percentage( calculated into item price )'),'placeholder'=>__('Item VAT percentage'),'value'=>$item->vat==""?$restorant->getConfig('default_tax_value',0):$item->vat,'required'=>false,'type'=>'number']) @endif