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

{{ __($pageTitle) }}

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

@lang('app.recurringDetail')


{{--

@lang('app.invoiceRecurring')

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

{{ $invoice->currency->currency_symbol.''.$invoice->recurrings->sum('price') }}

@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

 {{ 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(!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_position($item->unit_price, $invoice->currency->currency_symbol) !!} {!! currency_position($item->amount, $invoice->currency->currency_symbol) !!}

@lang("modules.invoices.subTotal") : {!! currency_position($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_position($tax, htmlentities($invoice->currency->currency_symbol)) !!}

@endforeach

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

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

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

@endif
@endsection @push('footer-script') @endpush