@extends('layouts.app') @section('content') {{-- --}}
{{-- show the Flash Message Here --- START --}} @if(Session::has('danger'))
{{ Session::get('danger') }}
@elseif (Session::has('success'))
{{ Session::get('success') }}
@endif {{-- show the Flash Message Here --- END --}} {{-- --}}

Todays Transactions

{{-- --}} {{-- Analysis row ----- START --}}
PKR
TOTAL DEBIT
{{number_format($customer_total_debit)}}
{{--
Todays Debit Percentage ({{number_format($customer_debit_percentage)}}%)
--}}
PKR
TOTAL CREDIT
{{number_format($customer_total_credit)}}
{{--
Todays Credit Percentage ({{number_format($customer_credit_percentage)}}%)
--}}
PKR
TOTAL BALANCE
{{number_format($customer_total_balance)}}
{{--
Todays Balance Percentage ({{number_format($customer_balance_percentage)}}%)
--}}
{{-- Analysis row ----- END --}} {{-- --}}

Customer Updates {{$formatted_date}}

@foreach ($customer_ledger as $item) {{-- --}}
Transactions (from most recent to late) Actions
@if ($item['ledger_particular'] != 'Opening Balance')

{{App\User::where('user_id',$item['user_id'])->first()->user_name}} bought {{$item['ledger_particular']}} at the rate of {{number_format($item['rate'])}}. The Current Debit is {{number_format($item['debit'])}}

@elseif($item['ledger_particular'] != 'Receive')

{{App\User::where('user_id',$item['user_id'])->first()->user_name}} bought {{$item['ledger_particular']}} at the rate of {{number_format($item['rate'])}}. The Current Debit is {{number_format($item['debit'])}}

@elseif($item['ledger_particular'] == 'Receive')

Ammount: {{number_format($item['credit'])}} received by {{App\User::where('user_id',$item['user_id'])->first()->user_name}}.

@endif