@extends('layouts.app') @section('content') @section('content')
{{ $title }}

{{ str_date($log->log_date) }}

{{ $log->log_type }}

{{ $log->department }}

{{ number_format($log->total_worth,2) }}
@php $total = 0; @endphp @foreach($log->stock_log_items as $item) @php $total += ($item->selling_price * $item->quantity); @endphp @endforeach
# Name Quantity Selling Price Total
{{ $loop->iteration }} {{ $item->stock->name }} {{ $item->quantity }} {{ number_format($item->selling_price,2) }} {{ number_format(($item->selling_price * $item->quantity),2) }}
Total {{ number_format($total,2) }}
@endsection