@extends('layouts/contentLayoutMaster') @section('title', 'Show Product') @section('main-page', 'Products') @section('sub-page', 'Show Product') @section('vendor-style') {{-- Page Css files --}} @endsection @section('page-style') {{-- Page Css files --}} @endsection @section('content')

Product Name

Product Image (main)

Preview
@if($model->getMedia('product_extra_images')->isNotEmpty())

Product Images

@foreach ($model->getAllProductImages() as $media) @endforeach
@endif

Rate

Star {{ $model->rating ?? 0 }}
Added Date: {{ $model->created_at->format('Y-m-d') }}
Purchase Times: 243
Product Name In English {{ $model->getTranslation('name','en') }}
Product Name In Arabic {{ $model->getTranslation('name','ar') }}
Product Description In English {{ $model->getTranslation('description','en') }}
Product Description In Arabic {{ $model->getTranslation('description','ar') }}
Category {{ $model->category?->name }}
Subcategory {{ $model->subCategory?->name ?? "-" }}
Tags @forelse($model->tags as $tag) {{ $tag->name }} @empty - @endforelse
Quantity & Price {{ $model->has_custom_prices ? "Quantity Added Manually" : "Default Quantity"}}
@if($model->has_custom_prices) @foreach($model->prices as $product)
Quantity {{ $product->quantity }}
Original Price (EGP) (Per Item) {{ $product->price }}
@endforeach @else
Original Price (EGP) (Per Item) {{ $model->base_price }}
@endif

Product Specs

@foreach($model->specifications as $specification)
Name {{ $specification->name }}
@foreach($specification->options as $index => $option) @endforeach
Value {{ $option->value }}
Price (EGP) (Optional) {{ $option->price }}
Photo @if ($option->media->isNotEmpty()) @else - @endif
@endforeach
Total Reviews: 421 Reviews
Avatar
John Doe
2024-04-22
This product is really great, highly recommend!
Review Image
Placed 27/09/2024

Avatar
Reply from Dorra Team
2024-04-23
Thank you for your kind words! We're happy you loved the product.
@endsection @section('vendor-script') {{-- Vendor js files --}} {{-- data table --}} @endsection @section('page-script') {{-- Page js files --}} @endsection