@extends('back.layouts.layout') @section('title','Edit Product') @section('content-header') Edit Product Dashboard Product Edit Product @endsection @section('content') @csrf @method('put') Name * @if ($errors->has('name')){{ $errors->first('name') }}@endif Category * Select Category @foreach($categories as $category) id) selected @elseif($category->id == $product->category_id) selected @endif>{{ $category->name }} @endforeach @if ($errors->has('category_id')){{ ($errors->first('category_id')) ? old('name') : $product->name }}@endif featured)=="1") checked @endif value="1"> Featured @if ($errors->has('featured')){{ $errors->first('featured') }}@endif Description {{ (!empty(old('description'))) ? old('description') : $product->description }} @if ($errors->has('description')){{ $errors->first('description') }}@endif Excerpt {{ (!empty(old('excerpt'))) ? old('excerpt') : $product->excerpt }} @if ($errors->has('excerpt')){{ $errors->first('excerpt') }}@endif Image @if($product->image!="") @endif @if ($errors->has('image')){{ $errors->first('image') }} @endif Status @foreach($statuses as $key=> $status) status) selected @endif>{{ $status }} @endforeach @if ($errors->has('status')){{ $errors->first('status') }} @endif Publish Save Product List @endsection