@php $title = trans('lang.new_',['name'=>__('lang.product')]); if (isset($product)) { $title = trans('lang.edit_',['name'=>__('lang.product')]); } @endphp @extends("layouts.default") @section('title', $title) @section("block-header") {{ $title }} @lang('lang.back') @stop @section("content") @php if(isset($company_id)) { $url = isset($product) ? route('admin.product.update', [$company_id, $product->id]) : route('admin.product.store', $company_id); } else { $url = isset($product) ? route('product.update', $product->id) : route('product.store'); } $has_ide = $has_ide ?? 0; @endphp
@if(isset($product)) @method("PUT") @endif @csrf
@lang('lang.product_',['name'=>__('lang.information')])
@if($errors->has('property.name')) @endif
@if($errors->has('property.product_id')) @endif
@if($errors->has('property.sku')) @endif
@if($errors->has('property.barcode')) @endif
@if($errors->has('property.product_category_id')) @endif
@if($errors->has('property.unit_price')) @endif
@if($has_ide) @else @endif
@lang('lang.picture')

@if (@$product->property->feature_image) Image @else touch_app @endif

@lang('lang.click_to',['name'=>__('lang.upload')])

@stop