@extends('admin::layouts.master') @section('title', 'Product Details') @section('content')
| {{ ucwords(str_replace('_', ' ', $field)) }} | @if(in_array($field, ['price', 'unit_price', 'original_price', 'discount']) && $product->$field) €{{ number_format($product->$field, 2) }} @elseif(in_array($field, ['is_active', 'is_save_the_food', 'is_weekly_special'])) {{ $product->$field ? 'Yes' : 'No' }} @elseif($field === 'description') {{ $product->description ?? '-' }} @else {{ $product->$field ?? '-' }} @endif |
| Category | {{ $product->category?->name ?? '-' }} |
| Created | {{ $product->created_at->format('Y-m-d H:i') }} |
No media attached.
Upload media