@extends('appshell::layouts.private')
@section('title')
{{ $product->name }}
@stop
@section('content')
@component('appshell::widgets.card_with_icon', [
'icon' => $product->is_active ? 'product' : 'product-off',
'type' => $product->is_active ? 'success' : 'warning'
])
{{ $product->name }}
@if (!$product->is_active)
{{ __('inactive') }}
@endif
@slot('subtitle')
{{ $product->variants->implode('sku', ', ') }}
@endslot
@endcomponent
@component('appshell::widgets.card_with_icon', [
'icon' => 'time',
'type' => 'info'
])
{{ $product->state }}
@slot('subtitle')
{{ __('Updated') }}
{{ show_datetime($product->updated_at) }}
|
{{ __('Created at') }}
{{ show_datetime($product->created_at) }}
@endslot
@endcomponent
@component('appshell::widgets.card_with_icon', ['icon' => 'bag'])
{{ $product->units_sold ?: '0' }}
{{ __('units sold') }}
@slot('subtitle')
@if ($product->last_sale_at)
{{ __('Last sale at') }}
{{ show_datetime($product->last_sale_at) }}
@else
{{ __('No sales were registered') }}
@endif
@endslot
@endcomponent
@include('vanilo::master-product._variants')
@include('vanilo::product._show_categories', ['for' => $product])
@include('vanilo::product._show_properties', ['for' => $product])
@include('vanilo::media._index', ['model' => $product])