@extends('front.layouts.app') @push('title', $product->name) @push('description', $product->description) @if ($product->img) @push('og_image', asset($product->img)) @else @push('og_image', asset($product->category->img)) @endif @section('content')
@include('front.partials.share')
@if ($product->sliders) @push('css') @endpush
@foreach (json_decode($product->sliders, true) as $slider)
{{ $product->name }}
@endforeach
@push('js') @endpush @elseif($product->img)
{{ $product->name }}
@else
{{ $product->name }}
@endif @if ($product->isPopular()) {{ __('Popular') }} @endif @if ($product->isBestSeller()) {{ __('Best Seller') }} @endif @if ($product->isNew()) {{ __('Newest') }} @endif
@if ($product->discount_rate) %{{ $product->discount_rate }} {{ config('app.currency_symbol') }}{{ money($product->old_price - $product->price) }} @endif

{{ $product->name }} @if ($product->stocks->count() > 0)

{{ __('In Stock') }} : {{ $product->stocks->count() }}
@endif @if ($product->get_properties($product->properties)->count() > 0)
@foreach ($product->get_properties($product->properties) as $property) {{ $property->name }} {{ $property->name }} @if ($property->description) @endif @endforeach
@endif
@if ($product->old_price) {{ config('app.currency_symbol') }}{{ money($product->old_price) }} @endif {{ config('app.currency_symbol') }}{{ money($product->price) }}
@if ($product->description)

{{ $product->description }}

@endif
@csrf @if ($product->customer_inputs) @foreach (explode('::', $product->customer_inputs) as $input)
@endforeach @endif @if($product->buy_button == 1)
@if($product->even_if_out_of_stock == 1 || $product->stocks->count() > 0)
@else
@endif
@endif
@if ($product->whatsapp) @endif @if ($product->demo_url || $product->admin_demo_url)
@if ($product->demo_url) @endif @if ($product->admin_demo_url) @endif
@endif
{{ $product->views_count }}
{{ __('Views') }}
{{ $product->sales_count }}
{{ __('Sales') }}
@endsection @push('js') @endpush