@extends('layouts.master') @php $units = App\MeasurementUnit::where('id_measurement_unit', $product->measurement_unit_id)->first(); @endphp @section('content')
Products Stock

Stock List @can('Stocks add') Add New Stock @endcan @can('Products list') Back to Products @endcan

Product Information

{{ $product->products_name }}
{{ $product->products_sale_price }}
{{ $units ? $units->measurement_unit_name : 'N/A' }}
{{ $product->in_stock ? $product->in_stock : '0' }}
{{ $product->brand->brands_name }}
@php $color = $product->products_status == 0 ? '#f5c5c5' : ''; @endphp @foreach ($product->stocks as $key => $stock) @endforeach
S.No Store Name Batches# Pur. Date Expires Purchase Qty Customer Return Transfer In Transfer Out Sold Supplier Return Damage Remain Qty Action
{{ $key + 1 }} {{ optional($stock->store)->store_name ?? 'N/A' }} {{ $stock->stock_batch_number ?? 'N/A' }} {{ date('d-m-Y', strtotime($stock->stock_purchase_date)) ?? 'N/A' }} {{ date('d-m-Y', strtotime($stock->stock_expiry_date)) ?? 'N/A' }} {{ $stock->stock_purchase_qty ?? '0' }} {{ $stock->stock_customer_return ?? '0' }} {{ $stock->stock_qty_to_transfer_in ?? '0' }} {{ $stock->stock_qty_to_transfer_out ?? '0' }} {{ $stock->stock_sold_qty ?? '0' }} {{ $stock->stock_supplier_return ?? '0' }} {{ $stock->stock_damage_qty ?? '0' }} {{ $stock->stock_remain_qty ?? '0' }} @can('Stocks edit') Edit @endcan @can('Stocks increase') Increase Stock @endcan @can('Stocks transfer') Transfer @endcan @can('Stocks damage') Add Damaged Stock Damage @endcan
S.No Store Name Batches# Pur. Date Expires Purchase Qty Customer Return Transfer In Transfer Out Sold Supplier Return Damage Remain Qty Action
@endsection @push('scripts') @endpush