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