@extends('layouts.public') @section('content')
{{ _lang('Pay Via Stripe') }}
@php $base_currency = get_company_field( $invoice->company_id, 'base_currency', 'USD' ); @endphp @php $date_format = get_company_field($invoice->company_id, 'date_format','Y-m-d'); @endphp @php $currency = currency($base_currency); @endphp @if($invoice->related_to == 'contacts' && isset($invoice->client)) @php $client_currency = $invoice->client->currency; @endphp @php $client = $invoice->client; @endphp @else @php $client_currency = $invoice->project->client->currency; @endphp @php $client = $invoice->project->client; @endphp @endif
{{ _lang('Invoice No') }} {{ $invoice->invoice_number }}
{{ _lang('Invoice Date') }} {{ date($date_format, strtotime( $invoice->invoice_date)) }}
{{ _lang('Due Date') }} {{ date($date_format, strtotime( $invoice->due_date)) }}
{{ _lang('Due Amount') }} {{ decimalPlace(($invoice->grand_total - $invoice->paid), $currency) }} @if($client_currency != $base_currency)
{{ decimalPlace(convert_currency($base_currency, $client_currency, ($invoice->grand_total - $invoice->paid)), currency($client_currency)) }} @endif
@endsection @section('js-script') @endsection