@extends('layouts.backend') @section('extraCss') @endsection @php $reqpos = request("pos_id"); @endphp @section('mainContentArea')

Customer Credit Note Report

Group Store Start Ends ACTION
Loading...
@if(count($customerInfo) > 0) @php $gctotal= $gutotal = $gatotal = $cttotal= $uttotal = $atotal = 0.0; $i= 1; @endphp @foreach($customerInfo as $key => $values) @php $cttotal = $cttotal + $values['totalcredit']; $uttotal = $uttotal + $values['totaldebit']; $atotal = $atotal + $values['totalblance']; $gctotal = $gctotal + $values['totalNote']; $gutotal = $gutotal + $values['usedNote']; $gatotal = $gatotal + $values['Credit-Note']; @endphp @php $i++; @endphp @endforeach @endif
S.No Name Mobile Number Total Credit Note Total Used Note Total Available Exchange Credit Note Used Note Available Used In Bills
{{ $i}} {{ $values['name'] }} {{ $values['number'] }} {{ number_format((float)$values['totalcredit'], 2, '.', '') }} {{ number_format((float)$values['totaldebit'], 2, '.', '') }} {{ number_format((float)$values['totalblance'], 2, '.', '') }} @foreach($values['exchange'] as $key => $product) @foreach($product as $products) {{ $key}} {{$products}}
@endforeach @endforeach
{{ number_format((float)$values['totalNote'], 2, '.', '') }} {{ number_format((float)$values['usedNote'], 2, '.', '') }} {{ number_format((float)$values['Credit-Note'], 2, '.', '') }} @foreach($values['used'] as $keys => $used) @foreach($used as $use) {{ $keys}} {{$use}}
@endforeach @endforeach
{{ round($cttotal) }} {{ round($uttotal) }} {{ round($atotal) }} {{ round($gctotal) }} {{ round($gutotal) }} {{ round($gatotal) }}
@endsection @section('extraJs') @endsection