@extends('admin.layout') @section('title', $p->exists ? 'Edit product' : 'Add product') @section('content')
@csrf @if ($p->exists)@endif

Basics

Price

@can('finance.view')@endcan

Stock

Specifications

These fields are defined by you under Categories & specs. Pick a category to see its fields.

@forelse ($attrs as $a) @php($v = $vals[$a->id] ?? '') @empty

No specification fields yet.

@endforelse

Photos

@if ($photos->isNotEmpty())
@foreach ($photos as $ph)
@endforeach

The photo with the smallest order number is the main photo.

@endif
Cancel
@if ($p->exists)
@csrf
@endif @endsection