@extends('layouts.frontlayout') @section('content')
{{ csrf_field() }}
@php $images = $page->image ? json_decode($page->image, true) : []; @endphp @if($images) @foreach($images as $key => $photo)
@include('frontend.partials.fileRender', ['file' => $photo, 'size' => "small"])
@endforeach @endif
@php $images = $page->image ? json_decode($page->image, true) : []; @endphp @if($images) @foreach($images as $key => $photo)
@include('frontend.partials.fileRender', ['file' => $photo, 'size' => "large"])
@endforeach @else @endif

{{isset($page->title) && $page->title ? $page->title : ""}}

@php $price = $page->variant ? Arr::pluck($page->variant,"price") : null; $minPrice = $price ? min($price) : null; $salePrice = $page->variant ? Arr::pluck($page->variant,"discounted_price") : null; $saleMinPrice = $salePrice ? min($salePrice) : null; @endphp @if($saleMinPrice)

Starting from ₹{{$minPrice}} ₹ {{$saleMinPrice}}

@else

Starting from ₹ {{$minPrice}}

@endif

{!! isset($page->description) && $page->description ? $page->description :"" !!}

@if(isset($page['colors']) && $page['colors']->toArray())

Color

@include('frontend.products.productColorLoop')
@endif @if(isset($storages) && $storages)

Storage

@include('frontend.products.productStorageLoop')
@endif

Key Features

{!! isset($page->keyfeature) && $page->keyfeature ? $page->keyfeature:"" !!}

General

{!! isset($page->specification) && $page->specification ? $page->specification:"" !!}
@if($relatedCount) @endif @if($boughtProducts && $boughtProducts->toArray()) @endif @endsection