@extends('layouts.app') @section('page-title')

{{ __($pageTitle) }}

@endsection @push('head-script') @endpush @section('content')

@lang('app.recurringDetail')


{{--

@lang('app.invoiceRecurring')

--}}
@lang('app.price')
{{ currency_formatter($invoice->total,'') }}
@lang('app.totalAmount')

{{ currency_formatter($invoice->recurrings->sum('total'),$invoice->currency->currency_symbol) }}

@lang('app.completedInvoice')

{{ $invoice->recurrings->count() }}

@lang('app.pendingInvoice')
@if($invoice->unlimited_recurring == 0 ) @if($invoice->billing_cycle > $invoice->recurrings->count())

{{ $invoice->billing_cycle - $invoice->recurrings->count() }}

@else

@endif @else

@endif
@lang('modules.expensesRecurring.lastPaymentDate')

@if($invoice->recurrings->count() > 0) {{ $invoice->recurrings[$invoice->recurrings->count()-1]->created_at->format($global->date_format) }} @else -- @endif

@lang('modules.expensesRecurring.upcomingInvoiceOn')

{{ $invoice->getUpcomingDate() ?? '--' }}


 {{ ucwords($global->company_name) }}

@if(!is_null($settings))

{!! nl2br($global->address) !!}

@endif @if($invoiceSetting->show_gst == 'yes' && !is_null($invoiceSetting->gst_number))

@lang('app.gstIn') :{{ $invoiceSetting->gst_number }}

@endif
@if(isset($invoice->project->client) && !is_null($invoice->project_id) && !is_null($invoice->project->client))

To,

{{ ucwords($invoice->project->client->name) }}

@lang('app.address') : {!! nl2br($invoice->project->client->address) !!}

@if($invoice->show_shipping_address === 'yes')

@lang('app.shippingAddress') : {!! nl2br($invoice->project->client->shipping_address) !!}

@endif @if($invoiceSetting->show_gst == 'yes' && !is_null($invoice->project->client->gst_number))

@lang('app.gstIn') : {{ $invoice->project->client->gst_number }}

@endif @elseif(!is_null($invoice->client_id))

@lang('modules.invoices.to'),

{{ ucwords($invoice->withoutGlobalScopeCompanyClient->name) }}

@lang('app.address') : {!! nl2br($invoice->clientdetails->address) !!}

@if($invoice->show_shipping_address === 'yes')

@lang('app.shippingAddress') : {!! nl2br($invoice->clientdetails->shipping_address) !!}

@endif @if($invoiceSetting->show_gst == 'yes' && !is_null($invoice->clientdetails->gst_number))

@lang('app.gstIn') : {{ $invoice->clientdetails->gst_number }}

@endif @endif

@lang('app.invoice') @lang('app.date') : {{ $invoice->issue_date->format($global->date_format) }}

@lang('app.dueDate') : {{ $invoice->due_date->format($global->date_format) }}

@if($invoice->recurring == 'yes')

@lang('modules.invoices.billingFrequency') : {{ $invoice->billing_interval . ' '. ucfirst($invoice->billing_frequency) }} ({{ ucfirst($invoice->billing_cycle) }} cycles)

@endif
@if($invoiceSetting->hsn_sac_code_show) @endif @foreach($invoice->items as $item) @if($item->type == 'item') @if($invoiceSetting->hsn_sac_code_show) @endif @endif @endforeach
# @lang("modules.invoices.item")@lang('modules.invoices.hsnSacCode')@lang("modules.invoices.qty") @lang("modules.invoices.unitPrice") @lang("modules.invoices.price")
{{ ++$count }} {{ ucfirst($item->item_name) }} @if(!is_null($item->item_summary))

{{ $item->item_summary }}

@endif
{{ ($item->hsn_sac_code) ?? '--' }}{{ $item->quantity }} {!! currency_formatter($item->unit_price, $invoice->currency->currency_symbol) !!} {!! currency_formatter($item->amount, $invoice->currency->currency_symbol) !!}

@lang("modules.invoices.subTotal") : {!! currency_formatter($invoice->sub_total,htmlentities($invoice->currency->currency_symbol)) !!}

@lang("modules.invoices.discount") : {!! htmlentities($invoice->currency->currency_symbol) !!}{{ $discount }}

@foreach($taxes as $key=>$tax)

{{ strtoupper($key) }} : {!! currency_formatter($tax, htmlentities($invoice->currency->currency_symbol)) !!}

@endforeach

@lang("modules.invoices.total") : {!! currency_formatter($invoice->total, htmlentities($invoice->currency->currency_symbol)) !!}

@if(!is_null($invoice->note))

@lang('app.note'): {{ $invoice->note }}

@endif
{{--Ajax Modal--}} {{--Ajax Modal Ends--}} {{--Ajax Modal--}} {{--Ajax Modal Ends--}} {{--Ajax Modal Ends--}} @endsection @push('footer-script')