@extends('panel::layouts.app') @section('body-class', 'page-product') @section('title', __('panel/menu.products')) @section('page-title-right') {{ __('panel/common.create') }} @endsection @section('content')
| {{ __('panel/common.id') }} | {{ __('panel/common.image') }} | {{ __('panel/common.name') }} | {{ __('panel/product.price') }} | {{ __('panel/product.quantity') }} | {{ __('panel/common.created_and_updated') }} | {{ __('panel/common.active') }} | @hookinsert('panel.product.list.table.header.after'){{ __('panel/common.actions') }} | |
|---|---|---|---|---|---|---|---|---|
| {{ $product->id }} | {{ sub_string($product->fallbackName(),20) }} @if($product->isMultiple()) M @endif | {{ currency_format($product->masterSku->price ?? 0) }} | {{ $product->totalQuantity() }} |
{{ \Carbon\Carbon::parse($product->created_at)->format('Y-m-d') }}
{{ \Carbon\Carbon::parse($product->updated_at)->format('Y-m-d') }}
|
@include('panel::shared.list_switch', ['value' => $product->active, 'url' =>panel_route('products.active', $product->id)]) | @hookinsert('panel.product.list.table.row.after', $product)