@extends('admin.layout.app') @section('content')
@include('admin.layout.session')
@csrf
Add New Product
@if ($errors->has('category_id'))
{{ $errors->first('category_id') }}
@endif
@if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
@if ($errors->has('default_price'))
{{ $errors->first('default_price') }}
@endif
@if ($errors->has('old_price'))
{{ $errors->first('old_price') }}
@endif
@if ($errors->has('description'))
{{ $errors->first('description') }}
@endif
Drag your file or
{{--
Accepted formats: png, jpg, jpeg. Max file size 5Mb @if ($errors->has('product_image'))
{{ $errors->first('product_image') }}
@endif
--}} {{-- @if(count($attributes) == 0) --}} Back {{-- @endif --}}
Add Attribute
@include('admin.product._attribute')
Back
{{-- @if(count($attributes) > 0)
Add Attribute
@if ($errors->has('attribute_id'))
{{ $errors->first('attribute_id') }}
@endif
@if ($errors->has('a_value_id'))
{{ $errors->first('a_value_id') }}
@endif
@if ($errors->has('attr_price'))
{{ $errors->first('attr_price') }}
@endif
@if ($errors->has('description'))
{{ $errors->first('description') }}
@endif
Back
@endif --}}
@endsection @push('js') @endpush @push('js') @endpush