@extends('Dashboard.layouts.app') @section('search') @endsection @section('style') @endsection @section('product_index', 'active') @section('main_content')

Product Details

@forelse ($product->Photos as $p)
@empty
@endforelse
@forelse ($product->Photos as $p)
@empty
@endforelse

{{ $product->name }} {{-- @if ($product->is_redeemable == 1) Redeemable @endif --}}

Published : {{ $product->created_at->format('d M Y') }}
{{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--

Type :

--}} {{--
{{ $product->type->name }}
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{--
--}} {{-- --}} {{--
--}} {{--
--}} {{--
--}} {{--

Available Stocks :

--}} {{-- @if ($product->stock == 0) --}} {{--
OUT OF STOCK
--}} {{-- @else --}} {{--
In STOCK
--}} {{-- @endif --}} {{--
--}} {{--
--}} {{--
--}} {{--
--}}

Category :

{{ $product->Category->name }}

Sub Category :

{{ $product->subCategory->name }}

Brand :

{{ $product->Brand->name }}

Total Revenue :

{{ $product->orderProduct->sum('sub_price') }}

No. of Orders :

{{ $product->orderProduct->count() }}

Allowed Point :

{{ $product->point }}
Product Description :
@endsection @section('script') @endsection