@extends('backend.layout') @push('backend_css') @endpush @section('backend_content')
{{-- ══ Header ══ --}}

{{ $product->product_title }}

{{ $shop->name }}
Edit
@csrf @method('DELETE')
Back
{{-- ══ Product Images ══ --}}
Product Images
{{-- Feature Image --}} @if ($product->feature_image)
Feature Image: {{ $product->product_title }}
@endif {{-- Gallery Images --}} @if ($product->images->count() > 0)
Gallery:
@foreach ($product->images as $image)
Gallery
@endforeach
@endif
{{-- ══ Product Details ══ --}}
Product Details
Price
${{ number_format($product->price, 2) }}
Offer Price @if ($product->offer_price)
${{ number_format($product->offer_price, 2) }}
@if ($product->offer_expiry_date)
Loading...
@else Offer active all time @endif @else

-

@endif
Stock
@if ($product->stock > 0) {{ $product->stock }} in stock @else Out of stock @endif
Created By

{{ $product->creator->name }}

Created At

{{ $product->created_at->format('M d, Y · H:i A') }}

Last Updated

{{ $product->updated_at->format('M d, Y · H:i A') }}

{{-- Variant Availability --}} @if ($product->hasVariantInventory())
Variant Availability
@foreach ($product->variantInventory() as $variant) {{ $variant['label'] }}: {{ $variant['stock'] }} @endforeach
@endif {{-- Dynamic Attributes --}} @if (count($product->displayAttributes()) > 0)
Product Variations / Attributes
@foreach ($product->displayAttributes() as $attributeKey => $attributeValues)
{{ \Illuminate\Support\Str::headline(str_replace('_', ' ', (string) $attributeKey)) }}
@php $values = is_array($attributeValues) ? $attributeValues : [$attributeValues]; @endphp @foreach ($values as $value) @php $displayValue = $value; if (is_array($value)) { $displayValue = $value['name'] ?? ($value['value'] ?? ($value['code'] ?? null)); } @endphp @if (!is_null($displayValue) && $displayValue !== '') {{ $displayValue }} @endif @endforeach
@endforeach
@endif
@endsection @push('backend_js') @endpush