@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 Name * @if ($errors->has('name')) {{ $errors->first('name') }} @endif Code @if ($errors->has('code')) {{ $errors->first('code') }} @endif Dosage {{$product->description ?? old('description') }} @if ($errors->has('description')) {{ $errors->first('description') }} @endif Status status == "active") selected @endif>Active status == "inactive") selected @endif>Inactive @if ($errors->has('active')) {{ $errors->first('active') }} @endif Price* @if ($errors->has('price')) {{ $errors->first('price') }} @endif Url @if ($errors->has('url')) {{ $errors->first('url') }} @endif Product Weight @if ($errors->has('product_weight')) {{ $errors->first('product_weight') }} @endif Images @if ($errors->has('file')) {{ $errors->first('file') }} @endif @forelse ($product->images as $image) file)}}" data-lightbox="Product Image" data-title="Product Image"--}}> X @empty @endforelse Submit Cancel @endsection