@extends('layout.appmain') @section('title', '- Profit Loss Report') @section('style') @endsection @section('main')

Profit Loss Report

Profit Loss Report

Total Sales: {{ number_format($totalSales, 2) }} TK

Total Orders: {{ $totalOrders }}

@foreach($salesData as $sale) @endforeach
Order Number Order Date Customer Info Product Name Quantity Price Total Amount
{{ $sale->order_number }} {{ \Carbon\Carbon::parse($sale->order_date)->format('Y-m-d H:i:s') }} {{ $sale->customer_info }} {{ $sale->product_name }} {{ $sale->quantity }} {{ number_format($sale->price, 2) }} TK {{ number_format($sale->total_amount, 2) }} TK
@endsection @section('script') @endsection