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

{{ __($pageTitle) }}

@endsection @push('head-script') @endpush @section('content')
@lang('modules.estimates.convertInvoiceTitle')
{!! Form::open(['id'=>'storePayments','class'=>'ajax-form','method'=>'POST']) !!}
{{ $creditNoteSetting->credit_note_prefix }}#{{ $zero }}
@if(in_array('projects', $modules) && $creditNote->project)
{{ $creditNote->project->project_name }}
@endif @if($creditNote->client)
{{ $creditNote->client->name}}
@endif

@lang('modules.credit-notes.item')
@if($invoiceSetting->hsn_sac_code_show)
@lang('modules.invoices.hsnSacCode')
@endif
@lang('modules.credit-notes.qty')
@lang('modules.credit-notes.unitPrice')
@lang('modules.credit-notes.tax')
@lang('modules.credit-notes.amount')
 
@foreach($creditNote->items as $key => $item)
@if($invoiceSetting->hsn_sac_code_show)
@endif

{{ number_format((float)$item->amount, 2, '.', '') }}

@endforeach
@lang('modules.credit-notes.subTotal')

{{ number_format((float)$creditNote->sub_total, 2, '.', '') }}

@lang('modules.credit-notes.discount')
@lang('modules.credit-notes.tax')

{{$totalTax}}

@lang('modules.credit-notes.total')

{{ number_format((float)$creditNote->sub_total-($totalTax+$totalDiscount), 2, '.', '') }}

{!! Form::close() !!}
{{--Ajax Modal--}} {{--Ajax Modal Ends--}} @endsection @push('footer-script') {{----}} @endpush