@extends('admin.layouts.app') @section('page_tab_title' ,"Products") @section('css') @endsection @section('content')

@if(empty($product->id)) Create New Product @else Edit Product @endif


id)) action="{{ route('product.store') }}" @else action="{{ route('product.update', $product->id) }}" @endif > @csrf
@if ($errors->has('name')) {{ $errors->first('name') }} @endif
@if ($errors->has('code')) {{ $errors->first('code') }} @endif
@if ($errors->has('description')) {{ $errors->first('description') }} @endif
@if ($errors->has('active')) {{ $errors->first('active') }} @endif
@if ($errors->has('price')) {{ $errors->first('price') }} @endif
@if ($errors->has('url')) {{ $errors->first('url') }} @endif
@if ($errors->has('product_weight')) {{ $errors->first('product_weight') }} @endif
@if ($errors->has('file')) {{ $errors->first('file') }} @endif
@forelse ($product->images as $image) X @empty @endforelse
Cancel
@endsection