@extends('layouts.app') @section('title', ($product->name ?? 'Product') . ' • BDCodeShop') @push('styles') @endpush @section('content')
← Back to Shop
@if($product->is_featured) @endif @if($product->thumbnail) {{ $product->name }} @endif
BC

{{ $product->name }}

@if($product->short_description)
{{ $product->short_description }}
@endif
@php $price = (float) $product->price; $discountPrice = $product->discount_price !== null ? (float) $product->discount_price : null; $finalPrice = ($discountPrice !== null && $discountPrice > 0) ? $discountPrice : $price; $discountPercent = ($discountPrice !== null && $discountPrice > 0 && $price > $discountPrice) ? round((($price - $discountPrice) / $price) * 100) : 0; @endphp ৳{{ number_format($finalPrice, 2) }} @if($discountPercent > 0) ৳{{ number_format($price, 2) }} {{ $discountPercent }}% OFF @endif
Version
{{ $product->version ?: 'Latest' }}
Sales
{{ number_format((int) $product->sales_count) }}
Downloads
{{ number_format((int) $product->downloads_count) }}
Category
{{ $product->category ?: 'Digital Product' }}
About this product
{{ $product->description ?: 'No detailed description available for this product yet.' }}
@php $screenshots = $product->screenshots; if (is_string($screenshots)) { $screenshots = json_decode($screenshots, true); } $screenshots = is_array($screenshots) ? $screenshots : []; @endphp @if(count($screenshots))
Screenshots
@foreach($screenshots as $screenshot) @if(is_string($screenshot) && $screenshot) Product screenshot @endif @endforeach
@endif
Secure Digital Purchase
After successful payment, your purchased product will become available in your Downloads section.
@endsection @push('scripts') @endpush