@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') @if( !empty( $comparision_group_types ) && count( $comparision_products ) > 1) @endif @endsection @section('above_container')@endsection @section('content')
@if($product->category) @endif
@if($product)

@if($product->photo) @php $image_url = \App\Helpers\Helper::check_image_avatar($product->photo->name, 500); @endphp {{$product->name}} @else {{$product->name}} @endif
@if($product->photo) @php $image_url = \App\Helpers\Helper::check_image_avatar($product->photo->name, 500); @endphp {{$product->name}} @else {{$product->name}} @endif @if(count($product->photos) > 0) @foreach($product->photos as $key=>$photo) @if($photo) @php $image_url = \App\Helpers\Helper::check_image_avatar($photo->name, 500); @endphp {{$product->name}} @else {{$product->name}} @endif @endforeach @endif

{{$product->name}}

@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($product->category) {{$product->category->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->model)


{{$product->virtual ? __("Version:") : __("Model No.")}} {{$product->model}}

@endif
@if(config('settings.social_share_enable')) @endif
@php $var_amount = $hide = 0; @endphp @if(is_array($variants) && count($variants)) @php $hide = 1; @endphp @foreach($variants as $key => $variant) @foreach($variant['v'] as $variant_key => $value) @php $var_amount += $value['p']; break @endphp @endforeach @endforeach @endif @if($product->price_with_discount() < $product->price) {{currency_format($product->price_with_discount() + $var_amount)}} {{currency_format($product->price)}} {{round($product->discount_percentage())}}@lang('% off') @else @if($product->old_price && ($product->price < $product->old_price)) {{currency_format($product->price + $var_amount)}} @if($hide == 0)
{{currency_format($product->old_price)}} {{round(100 * ($product->old_price - $product->price) / $product->old_price)}}@lang('% off')
@endif @else {{currency_format($product->price + $var_amount)}} @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']) !!} @if($product->virtual && $product->downloadable && $product->file) {!! Form::hidden('quantity', 1, ['class'=>'form-control','step'=>'1', 'min'=>'1', 'max'=>$product->qty_per_order]) !!} {{-- {!! Form::label('quantity', 1,['class'=>'form-control']) !!}--}} @else {!! Form::label('quantity', __('Quantity:')) !!} {!! Form::number('quantity', 1, ['class'=>'form-control', 'step'=>'1', 'min'=>'1', 'max'=>$product->qty_per_order]) !!} @endif @if(is_array($variants) && count($variants)) @foreach($variants as $key => $variant) @php $i = 0 @endphp
{{$variant['n']}}:
@php $class = $opening = $closing = ''; @endphp @if(isset($variant['c']) && $variant['c'] == 1) @php $class = 'color_variant_css'; $opening = "
    "; $closing = "
"; @endphp @endif {!! $opening !!} @foreach($variant['v'] as $variant_key => $value) @php $style = ''; @endphp @if(!empty($class)) @php $style = 'background-color : '. $value['n'].';'; @endphp @endif @if(isset($variant['c']) && $variant['c'] == 1)
  • @else @endif @php $i++; @endphp @endforeach {!! $closing !!}
    @endforeach @endif @if(config('settings.enable_zip_code'))
    {!! Form::label('shipping_pincode', __('Check Shipping Availability:')) !!}
    {!! Form::number('shipping_pincode',!empty(session('shipping_availability_value')) ? session('shipping_availability_value') : '' ,['class'=>'form-control','placeholder'=>'Enter Shipping Pincode']) !!}
    @endif {{--
    --}} @php if(session('shipping_availability') && config('settings.enable_zip_code')): echo '
    '; elseif(!session('shipping_availability') && config('settings.enable_zip_code')): echo '
    '; else: echo '
    '; endif; @endphp {!! Form::close() !!}
    @endif @if(Auth::check()) @if(!$product->favouritedBy(Auth::user()))
    @else
    @lang('This item is in your') @lang('Wishlist')
    @endif @endif @if($product->vendor)
    @endif
    {{--
    {!! DNS1D::getBarcodeHTML($product->barcode, "C128A") !!}
    --}} @include('partials.front.description-reviews') @include('partials.front.related-products') @include('partials.front.comparision-groups')
    @endif
    @endsection @section('scripts') @include('includes.reviews-submit-script') @include('includes.reviews-pagination-script') @include('includes.cart-submit-script') @if( !empty( $comparision_group_types ) && count( $comparision_products ) > 1) @endif @endsection