@extends('layouts.front') @section('title'){{$product->meta_title ? $product->meta_title : $product->name." - ".config('app.name')}}@endsection @section('meta-tags') @if($product->meta_keywords)@endif @endsection @section('meta-tags-og') @if($product->photo)@endif @endsection @section('styles') @endsection @section('content')
@if($product->category) @endif
@if($product)

{{$product->name}}

@if($variant_spec) @if($variant_spec->product_code)

Product Code {{ $variant_spec->product_code }}

@endif @else @if($product->model)

Product Code {{ $product->model }}

@endif @endif @if($product->virtual && $product->downloadable && $product->file) @lang('Download access will be given after payment is done.') @endif
@if($product->brand) {{$product->brand->name}} @endif @if(count($product->reviews->where('approved', 1)) > 0)

{{$product->reviews->where('approved', 1)->where('rating', '!=', null)->avg('rating')}}  {{count($product->reviews->where('approved', 1)->where('rating', '!=', null))}} @lang('Ratings &') {{count($product->reviews->where('approved', 1)->where('comment', '!=', null))}} @lang('Reviews')

@endif
@if($product->price_with_discount() < $product->price) {{currency_format($product->price_with_discount() + $variant_price )}} {{currency_format($product->price)}} @if(round($product->discount_percentage()) > 0) {{round($product->discount_percentage())}}@lang('% off') @endif @else @if($product->old_price && ($product->price < $product->old_price)) {{currency_format($product->price + $variant_price)}} {{currency_format($product->old_price)}} @if(round(100 * ($product->old_price - $product->price) / $product->old_price) > 0) {{round(100 * ($product->old_price - $product->price) / $product->old_price)}}@lang('% off') @endif @else {{currency_format($product->price + $variant_price)}} @endif @endif
@if($product->in_stock < 1)

@lang('Out of Stock!')

@elseif($product->in_stock < 4)

@lang('Only') {{$product->in_stock}} @lang('left in Stock!')

@else

@lang('In Stock')

@endif @if($product->in_stock > 0)
{!! Form::open(['method'=>'patch', 'route'=>['front.cart.add', $product->id], 'id'=>'cart-form', 'name' => 'addToCartForm']) !!} @if(count($product->variant_colors))
@if (request()->color)

Color: {{ request()->color}}

@else

Select Color

@endif
    @foreach($product->variant_colors as $variant_color) @php $colorSelected = ''; if(request()->color == $variant_color->name) { $colorSelected = 'is_choosen'; } @endphp
  • {{$variant_color->name}}
  • @endforeach
@php $option_input_value = ''; if (empty($variant_spec)) { $variant_color_options = $product->variant_color->options ?? []; } @endphp @if ($variant_color_options)
@if(request()->size)

Size: {{request()->size ?? 'Please select a Size.'}}

@else

Select Size

@endif
    @foreach ($variant_color_options as $variant_color_option) @php $sizeSelected = ''; if(request()->size == $variant_color_option->size) { $sizeSelected = 'is-selected'; } if ($variant_color_option->qty == 0) { $sizeSelected = 'no-size-disable'; } @endphp @if($variant_color_option->qty == 0)
  • {{$variant_color_option->size}}
  • @else
  • {{$variant_color_option->size}}
  • @endif @endforeach
@endif
@endif @if(!empty($request_variant_options) && $request_variant_options->qty == 0) @else {!! Form::label('quantity', __('Quantity:')) !!} {!! Form::number('quantity', 1, ['class'=>'quantity-pro', 'step'=>'1', 'min'=>'1', 'max'=>$product->qty_per_order]) !!}
   @if ($product->variant_colors->count()) @lang('Buy Now') @else @lang('Buy Now') @endif
@endif {!! Form::close() !!}
@endif @if($product->vendor)
@endif
@if(count($custom_fields = unserialize($product->custom_fields)) > 0 && is_array($custom_fields))
Highlights
    @foreach($custom_fields as $key => $field)
  • {{$field}}.
  • @if(ceil(count($custom_fields) / 2) == $loop->iteration)
    @endif @endforeach
@endif
  • 100% Certified
  • Life Time Exchange
  • 30 days Return
@if(config('settings.social_share_enable'))
Share:
@endif

Product Information

Product Details Product Details
@foreach($product->specificationTypes as $product_specification_type)
{{$product_specification_type->name}}

{{$product_specification_type->pivot->value}}

@endforeach
Overview
{!! $product->description !!}
@if ($product->fabric_details)
Fabric Details Fabric Details
{!! $product->fabric_details !!}
@endif @if ($product->return_exchange_policy)
Return and exchange policy Return and exchange policy
{!! $product->return_exchange_policy !!}
@endif
@if($product->template_photo)
@endif @include('partials.front.description-reviews') @include('partials.front.related-products')
@endif {{-- --}} @endsection @section('scripts') @if ($product->variant_colors->count()) @else @endif @include('includes.reviews-submit-script') @include('includes.reviews-pagination-script') @include('includes.cart-submit-script') @endsection