@extends('admin.layout.interface') @section('content')

Stocks

Stock Report Filter

@if (request('started_date') && request('ended_date')) @endif
@if (isset($totalData))

Total Stock Value: {{ number_format($totalPurchasePrice, 2) }}

@endif
@if (isset($totalData)) @foreach ($totalData as $key => $data) @endforeach @endif
Sr# Images Sku Product Name Category Unit Remaining Qty Purchase Price Stock Value
{{$key+1}} @php $images = json_decode($data->images, true); // decode to array @endphp @if (!empty($images) && is_array($images)) @foreach ($images as $img) Asset Image @endforeach @else No Image @endif {{$data->sku}} {{$data->name}} {{$data->category ? $data->category->name : ''}} {{$data->unit ? $data->unit->name : ''}} {{$data->remaining_quantity()}} {{$data->purchase_price}} {{ number_format(((float) $data->remaining_quantity()) * ((float) $data->purchase_price), 2) }}
@endsection @section('js') @endsection