@extends('apex-layouts.main') @section('title','Invoices') @section('header-right') Total:  {{ $invoices->total() }} {!! \App\helpers\ViewCommonHelper::headerExportButton() !!} @endsection @section('content') @if($report)
@foreach($report as $index =>$value)

{!! number_format($value) !!}

{!! $index !!}
@endforeach
@endif
@foreach($invoices as $invoice) @endforeach
# Title Amount PaidAmount Status Actions
{{$invoice->id}} {{$invoice->title}} @if($invoice->member_id)

member_id)}}">{{$invoice->memberName}}

@elseif($invoice->lead_id)

lead_id)}}">{{$invoice->leadName}}

@endif
@if($invoice->discountPercent) {{$invoice->invoiceAmount}}  {{\App\helpers\CommonHelper::discountCalculate($invoice->invoiceAmount,$invoice->discountPercent)}}
{{$invoice->discountPercent}}% @else {{$invoice->invoiceAmount}} Rs @endif

@if($invoice->object == \App\models\Invoice::ObjectMealplan) objectId)}}" title="{{$invoice->objectId}}"> {{$invoice->mealplan->title}} @else {{$invoice->object}} - Single Order @endif

@if($invoice->status == "CANCEL"){{$invoice->status}} @else {{$invoice->status}} @endif

{!! $invoice->paidDate?\App\helpers\ViewCommonHelper::getDateFormat($invoice->paidDate): ''!!}
@if(!in_array($invoice->status,['CANCEL','VOID'])) id)}}" data-modal-id="invoice-change-modal-{{$invoice->id}}"> @endif id)}}" data-modal-id="rider-change-modal-{{$invoice->id}}"> @if($invoice->rider_id)

{{$invoice->riderName}}

@endif

{{\App\helpers\ViewCommonHelper::getDateFormat($invoice->created_at,1)}}

{{\App\helpers\ViewCommonHelper::getDateFormat($invoice->updated_at,1)}}

@if($invoices->total() > $invoices->perPage()) @endif
@endsection @section('scripts') @stop @section('styles') @stop