@extends('admin.layouts.master') @section('content')

Profit and Loss Report

@if(!empty($productsales) && count($productsales) > 0) @foreach ($productsales as $item) @endforeach
Product Name Sell Price Purchase Price Units Sold Total Profit
{{ $item->name }} {{ number_format($item->sell_price, 2) }} {{ number_format($item->purchase_price, 2) }} {{ $item->units_sold }} {{ number_format($item->total_profit, 2) }}
@else @endif
@endsection