@extends('admin.layouts.main') @section('title', 'Product: ' . $product->name) @section('menu', 'Products') @section('content')
| Name | {{ $product->name }} |
|---|---|
| Slug | {{ $product->slug }} |
| Type | {{ ucwords(str_replace('_', ' ', $product->type)) }} |
| Group | {{ $product->group->name ?? '-' }} |
| Short Description | {{ $product->short_description ?? '-' }} |
| Description | {!! nl2br(e($product->description ?? '-')) !!} |
| Features |
|
| Server Group | {{ $product->serverGroup->name ?? '-' }} |
|---|---|
| Server Package | {{ $product->server_package_name ?? '-' }} |
| Requires Domain | {!! $product->requires_domain ? 'Yes' : 'No' !!} |
| Order Type | {{ $product->order_type === 'admin_only' ? 'Admin Only' : 'Storefront' }} |
| Display Order | {{ $product->display_order }} |
| Stock | {{ $product->stock_quantity ?? 'Unlimited' }} |
| Billing Cycle | Currency | Price | Renewal | Setup Fee | Cost Price |
|---|---|---|---|---|---|
| {{ $pricing->billingCycle->name ?? '-' }} | {{ $pricing->currency_code }} | {{ number_format($pricing->price, 2) }} | {{ number_format($pricing->renewal_price, 2) }} | {{ $pricing->setup_fee > 0 ? number_format($pricing->setup_fee, 2) : '-' }} | {{ $pricing->cost_price > 0 ? number_format($pricing->cost_price, 2) : '-' }} |
No pricing configured.
@endif| Active | {!! $product->is_active ? 'Yes' : 'No' !!} |
|---|---|
| Featured | {!! $product->is_featured ? 'Yes' : 'No' !!} |
| ID | {{ $product->id }} |
| Created | {{ $product->created_at->format('d M Y') }} |
| Updated | {{ $product->updated_at->format('d M Y') }} |
Use these links to let customers order this product. Works for both guests and logged-in users.
@if($product->requires_domain) @foreach($product->pricing->unique('billing_cycle_id') as $pricing) @if($pricing->billingCycle)Paste this HTML into any page or email template.
@php $firstPricing = $product->pricing->first(); if ($firstPricing) { $embedHtml = ''; } @endphp @if($firstPricing)