@extends('layouts.app') @push('styles') @endpush @php $addProductPermission = user()->permission('add_product'); @endphp @section('content') @php $billingCycle = $invoice->unlimited_recurring == 1 ? -1 : $invoice->billing_cycle; @endphp

@lang('app.invoice') @lang('app.details')


@method('PUT')

@if (isset($fields) && count($fields) > 0)
@foreach ($fields as $field)
@if ($field->type == 'text') @elseif($field->type == 'password') @elseif($field->type == 'number') @elseif($field->type == 'textarea') @elseif($field->type == 'radio')
@foreach ($field->values as $key => $value) @endforeach
@elseif($field->type == 'select')
{!! Form::select('custom_fields_data[' . $field->name . '_' . $field->id . ']', $field->values, isset($invoice) ? $invoice->custom_fields_data['field_' . $field->id] : '', ['class' => 'form-control select-picker']) !!}
@elseif($field->type == 'date') @endif
@endforeach
@endif
@if ($addProductPermission == 'all' || $addProductPermission == 'added') @lang('app.add') @endif
@foreach ($invoice->items as $key => $item)
@if ($invoiceSetting->hsn_sac_code_show) @endif @if ($invoiceSetting->hsn_sac_code_show) @endif
@lang('app.description') @lang("app.hsnSac")@lang("modules.invoices.qty") @lang("modules.invoices.unitPrice") @lang('modules.invoices.tax') @lang('modules.invoices.amount')
{{ number_format((float) $item->amount, 2, '.', '') }}
recurringInvoiceItemImage && $item->recurringInvoiceItemImage->external_link) readonly @endif />
@endforeach

@lang('modules.invoices.subTotal') {{ number_format((float) $invoice->sub_total, 2, '.', '') }}
@lang('modules.invoices.discount')
{{ number_format((float) $invoice->discount, 2, '.', '') }}
@lang('modules.invoices.tax')
0.00
@lang('modules.invoices.total') {{ number_format((float) $invoice->total, 2, '.', '') }}
@lang('app.save')
@endsection @push('scripts') @endpush