@extends('frontend.layouts.mobile') @php $title = trim($data['product']->meta_title); if($title == null || $title == 'NULL') $title = $data['product']->name . ' - ' . app_name(); if($data['product']->do_index == 'N' || $data['product']->status == 'N') $no_index = 'NOINDEX'; @endphp @section('title', $title) @if(trim($data['product']->meta_keywords) != null || trim($data['product']->competitor_skus) != null) @section('meta_keywords', $data['product']->meta_keywords . ', ' . $data['product']->competitor_skus) @endif @if(trim($data['product']->meta_description) != null) @section('meta_description', $data['product']->meta_description) @endif @if($data['product']->is_canonical == 'Y') @php if($data['product']->canonical_url != '') $url = $data['product']->canonical_url; else $url = URL::to( '/' . $data['product']->slug); @endphp @else @php $url = URL::current(); @endphp @endif @push('head-area') @if(isset($no_index)) @endif @endpush @php $videos = []; if($data['product']->video_id > 0) { $videos[$data['product']->video_id] = $data['product']->video; } if($data['product']->video_id2 > 0) { $videos[$data['product']->video_id2] = $data['product']->video2; } if($data['product']->video_id3 > 0) { $videos[$data['product']->video_id3] = $data['product']->video3; } $set_items = []; $set_products = \App\Models\Product::printSetProducts($data['product'], 'mobile'); if(trim($set_products) != null) $set_items[$data['product']->id] = $set_products; @endphp @section('content')
@push('after-scripts') @if($data['product']->type == 'variation') @endif @endpush @endsection