@extends('layouts.app') @section('title') {{'Customer Invoice Report'}} @endsection @section('content') @include('layouts.numbertowords')
Customer Invoice Report Back
@if (Session::has('msg'))
{{ Session::get('msg') }}
@endif
Search By Customer
Start Date
End Date

 

@include('layouts.head')

Customer Invoice Report

{!! date('d-F-Y', strtotime($start_date)) !!} to {!! date('d-F-Y', strtotime($end_date)) !!}

@if (isset($_GET['supplier_id']) && $_GET['supplier_id'] !='') @else @endif

Customer Name : {{ $supplier_id->id }} - {{ $supplier_id->name }}
Customer Name : All
@if (@$supplier_id->id =='') @endif @php $total_receipt = 0; $total_payment = 0; $i=1; @endphp @foreach ($report as $data) @if (@$supplier_id->id =='') @endif @php switch ($data->customer_id) { case 24: $total_payment += $data->amount; break; default: $total_payment += 0; break; } @endphp @endforeach @if (@$supplier_id->id !='') @else @endif
S.L. Date Invoice No.A/C NameParticulars Amount(BDT)
{{ $i++ }} {{date('d-F-Y', strtotime($data->txn_date))}} {{ $data->customer_id == 24 ? 'SI#' : 'PI#'}}{{ $data->sales_id }}{{ $data->name }}{{ $data->remarks }} {{ $data->customer_id == 24 ? number_format($data->amount,2) : '' }}
Grand Total =Grand Total ={{ number_format($total_payment,2) }}
IN WORDS : {!! numberTowords($total_payment) !!}
@endsection