@extends('layouts.admin') @section('title', 'Product | Mintavia Admin') @section('css') @endsection @section('content')
@if (isset($message) && $message) @switch($message['status']) @case('success') @break @case('error') @break @endswitch @endif

Bill & Item wise profit/loss

@foreach ($sales as $row) @endforeach
Part No Item Name Brand Barcode Qty Sale Rate Purchase Rate Profit/Loss Profit/Loss %
{{ $row->product_part_no ?? ($row->product->product_item->part_no ?? '-') }} {{ $row->product->product_item->item_name ?? '-' }} {{ $row->brand->brand_name ?? '-' }} {{ $row->barcode }} {{ $row->qty }} {{ number_format($row->rate, 2) }} {{ number_format($row->purchase_rate, 2) }} {{ number_format($row->profit_loss, 2) }} {{ $row->profit_loss_percent }} %
@endsection @section('js') @endsection