@extends('layouts.main') @section('page-title') {{ __('Invoice Summary') }} @endsection @section('page-breadcrumb') {{ __('Report') }}, {{ __('Invoice Summary') }} @endsection @push('scripts') @endpush @section('page-action')
@endsection @section('content')
{{ Form::open(array('route' => array('report.invoice.summary'),'method' => 'GET','id'=>'report_invoice_summary')) }}
{{ Form::label('start_month', __('Start Month'),['class'=>'form-label']) }} {{ Form::month('start_month',isset($_GET['start_month'])?$_GET['start_month']: date('Y-m'), array('class' => 'month-btn form-control')) }}
{{ Form::label('end_month', __('End Month'),['class'=>'form-label']) }} {{ Form::month('end_month',isset($_GET['end_month'])?$_GET['end_month']: date('Y-m'), array('class' => 'month-btn form-control')) }}
{{ Form::label('customer', __('Customer'),['class'=>'form-label']) }} {{ Form::select('customer',$customer,isset($_GET['customer'])?$_GET['customer']:'', array('class' => 'form-control ','placeholder' => 'Select Customer')) }}
{{ Form::label('status', __('Status'),['class'=>'form-label']) }} {{ Form::select('status', [''=>'Select Status']+$status,isset($_GET['status'])?$_GET['status']:'', array('class' => 'form-control ')) }}
{{ Form::close() }}
{{__('Report')}} :
{{__('Invoice Summary')}}
@if($filter['customer']!= __('All'))
{{__('Customer')}} :
{{$filter['customer'] }}
@endif @if($filter['status']!= __('All'))
{{__('Status')}} :
{{$filter['status'] }}
@endif
{{__('Duration')}} :
{{$filter['startDateRange'].' to '.$filter['endDateRange']}}
{{__('Total Invoice')}}
{{ currency_format_with_sym($totalInvoice)}}
{{__('Total Paid')}}
{{currency_format_with_sym($totalPaidInvoice)}}
{{__('Total Due')}}
{{currency_format_with_sym($totalDueInvoice)}}
@forelse ($invoices as $invoice) @empty @include('layouts.nodatafound') @endforelse
{{__('Invoice')}} {{__('Date')}} {{__('Customer')}} {{__('Category')}} {{__('Status')}} {{__(' Paid Amount')}} {{__('Due Amount')}} {{__('Payment Date')}} {{__('Amount')}}
{{ \App\Models\Invoice::invoiceNumberFormat($invoice->invoice_id) }} {{ company_date_formate($invoice->send_date)}} {{!empty($invoice->customer)? $invoice->customer->name:'-' }} {{!empty($invoice->category)?$invoice->category->name:'-'}} @if ($invoice->status == 0) {{ __(App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 1) {{ __(App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 2) {{ __(App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 3) {{ __(App\Models\Invoice::$statues[$invoice->status]) }} @elseif($invoice->status == 4) {{ __(App\Models\Invoice::$statues[$invoice->status]) }} @endif {{\currency_format_with_sym($invoice->getTotal()-$invoice->getDue())}} {{\currency_format_with_sym($invoice->getDue())}} {{!empty($invoice->lastPayments)?company_date_formate($invoice->lastPayments->date):''}} {{\currency_format_with_sym($invoice->getTotal())}}
@endsection