@extends('admin.layouts.app') @section('content')

Product Details

Name:

{{ $data->name }}

Category:

{{ optional($data->category)->name }}

Sub Category:

{{ optional($data->subCategory)->name }}

Price:

${{ $data->price }}

Min Price:

${{ $data->min_price }}

Size:

{{ $data->size ?? '-' }}

Material:

{{ $data->material ?? '-' }}

Weight:

{{ $data->weight ?? '-' }}

Colors:
@php $colors = is_array($data->colors) ? $data->colors : json_decode($data->colors, true); @endphp @if(!empty($colors))
    @foreach($colors as $color)
  • {{ $color }}
  • @endforeach
@else

-

@endif
Icon:
@if($data->icon) icon @else

No Icon

@endif
Created At:

{{ $data->created_at->format('d/m/Y h:i A') }}

@endsection