@push('headerScripts') @endpush @extends('layouts.app') @section('content') @php if(isset($product)){ $action = url('saas/organization/ecommerce/products/edit/'.$product->id); }else{ $action = url('saas/organization/ecommerce/products/create'); } @endphp
@csrf

@if (isset($product)) Edit @else Add @endif Product

Basic
Slug will be filled automatically if left blank
Product
Settings
@php if(isset($product) && $product->status == 'active'){ $checked = 'true'; }else{ $checked = ''; } @endphp
@php if(isset($product) && $product->is_featured){ $checked = 'true'; }else{ $checked = ''; } @endphp
@php if(isset($product) && $product->is_to_be_promoted){ $checked = 'true'; }else{ $checked = ''; } @endphp
Categories,
Brand and
Model
@php if(isset($product) && $product->models != ""){ $models = explode(',', $product->models); $models = json_encode($models); }else{ $models = ""; } @endphp
Inventory
Price
Information
@php if(isset($product) && $product->regular_price > $product->sale_price){ $percent = (($product->regular_price - $product->sale_price)*100) /$product->regular_price; $percent = number_format((float) $percent, 2, '.', ''); } else{ $percent = number_format((float) 0, 2, '.', ''); } @endphp
Description
@php if(isset($media)){ $mainImg=''; $img1=''; $imgArr=array(); foreach($media as $file){ if($file->type == 1){ $mainImg = $imgUrl.$file->file; } if($file->type == 2){ $imgArr[] = $imgUrl.$file->file; // if($img1 != ""){ // $img3 = $imgUrl.$file->file; // }else{ // $img1 = $imgUrl.$file->file; // } } } } @endphp
Product
Images
@isset($product) @endisset @isset ($product) @endisset @isset ($product) @endisset @isset ($product) @endisset @isset ($product) @endisset
Title Image Upload
Main Product Image*
Product Image 1
Product Image 2
Product Image 3
Product Image 4
Cancel
@endsection @push('footerScripts')