• {{ __('Admin') }}
  • {{ __('Products') }}
  • {{ __('Product Detail') }}
  • {{--
    --}}

    Product Detail

    {{$product->title}} {{$product->subtitle}}

    Status: @if($product->published) Active @else Inactive @endif @if($product->is_sellable) Sellable @else Not Sellable @endif @if($product->quantity_on_hand < 10 && $product->quantity_on_hand != 0) Low Stock @endif @if($product->quantity_on_hand == 0) Out of Stock @endif
    id:{{$product->id}}
    Category:{{$product->category->title}} @if($product->category->published) Category Active @else Category Inactive @endif
    Name (Title):{{$product->title}}
    Subtitle:{{$product->subtitle}}
    description:{!!$product->description!!}
    slug:{{$product->slug}}
    Cost:${{ number_format($product->cost,2)}}
    Price:${{ number_format($product->price,2)}}
    Quantity on Hand: @if($product->quantity_on_hand < 10 && $product->quantity_on_hand != 0) {{ $product->quantity_on_hand}} @endif @if($product->quantity_on_hand >= 10) {{ $product->quantity_on_hand}} @endif @if($product->quantity_on_hand == 0) {{ $product->quantity_on_hand}} @endif
    slug:{{$product->slug}}
    Field Type:{{$product->field_type_id}} {{-- $product->field_type->name --}}
    Event:@if($product->event) {{$product->event->name}} @endif
    Image:
    Doc:{{$product->doc}}
    Video:{{$product->video}}
    Sort:{{$product->sort}}
    Sellable? @if($product->is_sellable == 1) Yes @else No @endif
    Published? @if($product->published == 1) Active @else Inactive @endif
    Created By:{{$product->user->full_name}}
    created_at:{{$product->created_at}}
    updated_at:{{$product->updated_at}}

    Sales of {{$product->category->title}} {{$product->title}}

    @php $order_total=0; $count=0; @endphp @foreach($sales as $sale) @php $order_total = $order_total + ($sale->quantity * $sale->amount); $count = $count + $sale->quantity; @endphp @endforeach
    Order Order Date Customer Quantity Amount Total
    {{$sale->order_id}} {{date('M d, Y',strtotime($sale->order->created_at))}} {{$sale->order->user->fullname}} {{$sale->quantity}} ${{$sale->amount}} ${{ number_format($sale->quantity * $sale->amount,2)}}
    Totals {{$count}} ${{ number_format($order_total,2) }}