@extends('admin.layout.master') @section('title') Inventory @endsection @section('content')
@include('admin.layout.laravel_errors')
Inventory
{{-- --}} {{-- --}} @forelse($inventories as $i=>$inventory) {{-- --}} {{-- --}} {{-- --}} @empty @endforelse
Id Category Product Price Quantity Remaining Total Price Sale PriceShopDateDetailEdit Delete
{{ $i+1 }} {{ ($inventory->category_data) ? $inventory->category_data->name : '--' }} {{ ($inventory->subcategory_data) ? $inventory->subcategory_data->name : '--' }} {{ ($inventory->price) ? number_format($inventory->price) : '--' }} {{ ($inventory->quantity) ? $inventory->quantity : '--' }} {{ number_format($inventory->subcategory_data->inventory_data->sum('quantity')-$inventory->subcategory_data->sale_data->sum('quantity')) }} {{ ($inventory->total_price) ? number_format($inventory->total_price) : '--' }} {{ ($inventory->sale_price) ? number_format($inventory->sale_price) : '--' }}{{ ($inventory->shop_detail) ? $inventory->shop_detail->name : '--' }}{{ ($inventory->date) ? $inventory->date : '--' }}--}} {{-- --}} {{--
@endsection @section('script') @endsection