@extends('frontend.layouts.app')
@section('meta_title'){{ $detailedProduct->meta_title }}@stop
@section('meta_description'){{ $detailedProduct->meta_description }}@stop
@section('meta_keywords'){{ $detailedProduct->tags }}@stop
@section('meta')
@php
$availability = "out of stock";
$qty = 0;
if($detailedProduct->variant_product) {
foreach ($detailedProduct->stocks as $key => $stock) {
$qty += $stock->qty;
}
}
else {
$qty = optional($detailedProduct->stocks->first())->qty;
}
if($qty > 0){
$availability = "in stock";
}
@endphp
@endsection
@section('content')