@extends('layouts.contentLayoutMaster') {{-- page title --}} @section('title', 'Users List') {{-- vendor styles --}} @section('vendor-styles') @endsection {{-- page-styles --}} @section('page-styles') @endsection @section('content')

Edit Product

@if (session()->has('success'))
{{ session()->get('success') }}
@endif @if (session()->has('error'))
{{ session()->get('error') }}
@endif
@method('patch') @csrf
@error('name')
{{ $errors->first('name') }}
@enderror
@error('category_id')
{{ $errors->first('category_id') }}
@enderror
@error('quantity')
{{ $errors->first('quantity') }}
@enderror
@error('price')
{{ $errors->first('price') }}
@enderror
@error('size')
{{ $errors->first('size') }}
@enderror
@error('color')
{{ $errors->first('color') }}
@enderror
@error('marque')
{{ $errors->first('marque') }}
@enderror
{{--
@error('file')
{{ $errors->first('file') }}
@enderror
--}}

Status

status === 1 ? 'checked' : '' }} name="status" value="1" class="custom-control-input" id="customSwitchcolor2">
{{--
--}}
{{--
--}} {{-- --}} @foreach ($photo as $item)
principal == 1) @checked(true) @endif name="principal" value="{{ $item->id }}">   @if ($item->principal == 1) principale @else set principale @endif
@endforeach @error('images')
{{ $errors->first('images') }}
@enderror {{--
--}}
Return
@endsection {{-- vendor scripts --}} @section('vendor-scripts') @endsection {{-- page scrips --}} @section('page-scripts') @endsection