@extends('layouts.app') @section('content')

GHS{{$total_sale - $discounting}}

Net Sales

{{count(json_decode($invoices))}} Products Sold

GHS{{array_sum(array_column(json_decode($HeldTransactions), 'invoice_total_price'))}}

Held Transactions

7.5% since last week

GHS{{$discounting}}

Discount

7.7% since last week
@foreach(json_decode($invoices) as $invoices) @endforeach
OrderId Created at Product Outlet Rate Qty Total
{{$invoices->created_at}} {{@strtoupper($invoices->invoice_product_name)}} {{$invoices->branch}} @convert($invoices->invoice_unit_price) @convert($invoices->invoice_quantity) @convert($invoices->invoice_total_price)
@endsection