@extends('admin._layouts.fileupload') @section('content')
@if($obj->id)

Edit Product

@else

Create new Product

@endif
@if(auth()->user()->can($permissions['create'])) @endif
@include('admin._partials.notifications') @if($obj->id)
@else @endif @csrf id) value="{{encrypt($obj->id)}}" @endif id="inputId">
Product Details
The “slug” is the URL-friendly version of the name. It is usually all lowercase and contains only letters, numbers, and hyphens.
SEO
Extra Data
Publish
id || $obj->status == 1) checked="" @endif>
is_featured == 1) checked="checked" @endif>
@if(!$obj->id) {{date('d M, Y h:i A')}} @else {{date('d M, Y h:i A', strtotime($obj->created_at))}} @endif
@if(!$obj->id) {{date('d M, Y h:i A')}} @else {{date('d M, Y h:i A', strtotime($obj->updated_at))}} @endif
@if(!$obj->id) {{auth()->user()->name}} @else {{$obj->created_user->name}} @endif
@if(!$obj->id) {{auth()->user()->name}} @else {{$obj->updated_user->name}} @endif
Priority
Featured Image
@include('admin.media.set_file', ['file'=>$obj->featured_image, 'title'=>'Featured Image', 'popup_type'=>'single_image', 'type'=>'Image', 'holder_attr'=>'featured_image_id'])
Banner Image
@include('admin.media.set_file', ['file'=>$obj->banner_image, 'title'=>'Banner Image', 'popup_type'=>'single_image', 'type'=>'Image', 'holder_attr'=>'banner_image_id'])
OG Image
@include('admin.media.set_file', ['file'=>$obj->og_image, 'title'=>'OG Image', 'popup_type'=>'single_image', 'type'=>'Image', 'holder_attr'=>'og_image_id'])
@php $attribute_name = App\Models\Attribute::where('product_id',$obj->id)->pluck('name'); $attribute_slug = App\Models\Attribute::where('product_id',$obj->id)->pluck('slug'); $attribute_id = App\Models\Attribute::where('product_id',$obj->id)->pluck('id'); $attributes = App\Models\Attribute::where('product_id',$obj->id)->select('id','name','slug','priority')->get(); @endphp @if($obj->id)
@csrf
Add Attributes
id) value="{{encrypt($obj->id)}}" @endif id="inputId">
@endif
List Attributes
@foreach($attributes as $item) @endforeach
Name Slug Priority Add Values
{{$item->name}} {{$item->slug}} {{$item->priority}} Add
@include('admin._partials.footer')
@endsection @section('footer') @parent @endsection