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

Edit a Product

Product Form

@if (count($errors) > 0)
Whoops! There were some problems with your input.
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PATCH')
@if ($errors->has('title_en')) {{ $errors->first('title_en') }} @endif
@if ($errors->has('title_bn')) {{ $errors->first('title_bn') }} @endif
@if ($errors->has('product_sku')) {{ $errors->first('product_sku') }} @endif
@if ($errors->has('category_id')) {{ $errors->first('category_id') }} @endif
{{--
@if ($errors->has('brand_id')) {{ $errors->first('brand_id') }} @endif
--}} {{--
@if ($errors->has('code')) {{ $errors->first('code') }} @endif
--}} {{--
@if ($errors->has('generic_name')) {{ $errors->first('generic_name') }} @endif
--}} {{--
@if ($errors->has('tag')) {{ $errors->first('tag') }} @endif
--}} {{--
@if ($errors->has('deliverydays')) {{ $errors->first('deliverydays') }} @endif
--}} {{--
@if ($errors->has('color')) {{ $errors->first('color') }} @endif
--}}
@if ($errors->has('unit_type')) {{ $errors->first('unit_type') }} @endif
@if ($errors->has('unit_weight')) {{ $errors->first('unit_weight') }} @endif
@if ($errors->has('product_comession')) {{ $errors->first('product_comession') }} @endif
@can('accessStock', App\Permission::class)
@if ($errors->has('total_qty')) {{ $errors->first('total_qty') }} @endif
@endcan
@if ($errors->has('min_qty')) {{ $errors->first('min_qty') }} @endif
{{--
@if ($errors->has('moq')) {{ $errors->first('moq') }} @endif
--}}
@if ($errors->has('purchase_price')) {{ $errors->first('purchase_price') }} @endif
Price For Single Product
@if ($errors->has('price')) {{ $errors->first('price') }} @endif
@if ($errors->has('discount_type')) {{ $errors->first('discount_type') }} @endif
@if ($errors->has('discount_amount')) {{ $errors->first('discount_amount') }} @endif
{{--
Wholesale Price
@if ($errors->has('whsl_reg_price')) {{ $errors->first('whsl_reg_price') }} @endif
@if ($errors->has('whsl_disc_type')) {{ $errors->first('whsl_disc_type') }} @endif
@if ($errors->has('whsl_disc_amount')) {{ $errors->first('whsl_disc_amount') }} @endif
--}} {{-- Start of Product Size --}}
@if(old('stock')) @foreach(old('stock')['size'] as $count => $countValue)
@endforeach @else @foreach($product->stocks as $count => $countValue)
@endforeach @endif
{{-- End of Product Size --}}
@if ($errors->has('description_en')) {{ $errors->first('description_en') }} @endif
@if ($errors->has('description_bn')) {{ $errors->first('description_bn') }} @endif
{{--
@isset($product->size_chart)
Size Chart
@endisset
@if ($errors->has('size_chart')) {{ $errors->first('size_chart') }} @endif
--}}
@if ($errors->has('image')) {{ $errors->first('image') }} @endif
@foreach ($product->images as $zoomImage) @endforeach
@if ($errors->has('other_images.all')) {{ $errors->first('other_images.all') }} @endif @if($errors->has('other_images.*')) @foreach($errors->get('other_images.*') as $message) {{ $message[0] }}
@endforeach @endif @if ($errors->has('other_images')) {{ $errors->first('other_images') }} @endif
@endsection @section('js_after') @endsection