@extends('admin.layouts.main') @section('title', 'Product: ' . $product->name) @section('menu', 'Products') @section('content')
Product Details
@if($product->features) @endif
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
    @foreach($product->features as $feature)
  • {{ $feature }}
  • @endforeach
Configuration
@if($product->stock_control) @endif
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' }}
Pricing
@if($product->pricing->isNotEmpty()) @foreach($product->pricing as $pricing) @endforeach
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) : '-' }}
@else

No pricing configured.

@endif
Status
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') }}
Order Links

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)
@endif @endforeach @else @foreach($product->pricing->unique('billing_cycle_id') as $pricing) @if($pricing->billingCycle)
@endif @endforeach

Paste this HTML into any page or email template.

@php $firstPricing = $product->pricing->first(); if ($firstPricing) { $embedHtml = '
' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . ' ' . "\n" . '
'; } @endphp @if($firstPricing)
@endif @endif
@endsection @push('custom-scripts') @endpush