@extends('layouts.admin') @section('title', 'Edit ' . $product->name) @section('content')

{{ $product->name }}

{{ $product->category?->name ? ucwords(strtolower($product->category->name)) : 'Uncategorised' }} @if($product->sku) · SKU: {{ $product->sku }} @endif · View on site →

@csrf @method('PATCH') @if($errors->any())
@foreach($errors->all() as $error)

{{ $error }}

@endforeach
@endif

Must be lower than the regular price.

Stock Status
Cancel

Preview

@if($product->mainImage()) {{ $product->name }} @else
@endif
Current price
৳{{ number_format($product->currentPrice()) }}
@if($product->isOnSale())
Discount
{{ $product->discountPercent() }}% off
@endif
Total sales
{{ number_format($product->total_sales) }}
Rating
{{ $product->average_rating > 0 ? number_format($product->average_rating, 1) . ' ★' : '—' }}
Images
{{ $product->images->count() }}
@endsection