@extends('layouts.contentLayoutMaster') {{-- page title --}} @section('title', 'Users List') {{-- vendor styles --}} @section('vendor-styles') @endsection {{-- page-styles --}} @section('page-styles') @endsection @section('content') Add Product @if (session()->has('success')) {{ session()->get('success') }} @endif @if (session()->has('error')) {{ session()->get('error') }} @endif @csrf @error('name') {{ $errors->first('name') }} @enderror Name Choice Category @foreach ($category as $item) @foreach ($item->categories as $cat) {{ $cat->name }} @endforeach @endforeach @error('category_id') {{ $errors->first('category_id') }} @enderror @error('quantity') {{ $errors->first('quantity') }} @enderror Quantity @error('price') {{ $errors->first('price') }} @enderror Price Size @foreach ($size as $item) {{ $item->code }} @endforeach @error('size') {{ $errors->first('size') }} @enderror Color @foreach ($color as $item) {{ $item->name }} @endforeach @error('color') {{ $errors->first('color') }} @enderror Marque @error('marque') {{ $errors->first('marque') }} @enderror Photo Principal @error('file') {{ $errors->first('file') }} @enderror Return Submit @endsection {{-- vendor scripts --}} @section('vendor-scripts') @endsection {{-- page scrips --}} @section('page-scripts') @endsection