@extends('layouts.admin') @section('title', trans_choice('general.invoices', 1) . ': ' . $invoice->invoice_number) @section('content') @if ($invoice->recurring()->count())
{{ trans('recurring.message', [ 'type' => mb_strtolower(trans_choice('general.invoices', 1)), 'date' => $invoice->recurring->schedule()->next()->getStart()->format($date_format) ]) }}
{{ trans('invoices.invoice_number') }}: | {{ $invoice->invoice_number }} |
---|---|
{{ trans('invoices.order_number') }}: | {{ $invoice->order_number }} |
{{ trans('invoices.invoice_date') }}: | {{ Date::parse($invoice->invoiced_at)->format($date_format) }} |
{{ trans('invoices.payment_due') }}: | {{ Date::parse($invoice->due_at)->format($date_format) }} |
{{ trans_choice('general.items', 1) }} | {{ trans('invoices.quantity') }} | {{ trans('invoices.price') }} | {{ trans('invoices.total') }} |
---|---|---|---|
{{ $item->name }}
@if ($item->sku)
{{ trans('items.sku') }}: {{ $item->sku }} @endif |
{{ $item->quantity }} | @money($item->price, $invoice->currency_code, true) | @money($item->total, $invoice->currency_code, true) |
{{ trans_choice('general.notes', 2) }}
{{ $invoice->notes }}
@endif{{ trans($total->name) }}: | @money($total->amount, $invoice->currency_code, true) |
---|---|
{{ trans('invoices.paid') }}: | - @money($invoice->paid, $invoice->currency_code, true) |
{{ trans($total->name) }}: | @money($total->amount - $invoice->paid, $invoice->currency_code, true) |
{{ trans('general.date') }} | {{ trans_choice('general.statuses', 1) }} | {{ trans('general.description') }} |
---|---|---|
{{ Date::parse($history->created_at)->format($date_format) }} | {{ $history->status->name }} | {{ $history->description }} |
{{ trans('general.date') }} | {{ trans('general.amount') }} | {{ trans_choice('general.accounts', 1) }} | {{ trans('general.actions') }} |
---|---|---|---|
{{ Date::parse($payment->paid_at)->format($date_format) }} | @money($payment->amount, $payment->currency_code, true) | {{ $payment->account->name }} | {!! Form::open([ 'id' => 'invoice-payment-' . $payment->id, 'method' => 'DELETE', 'url' => ['incomes/invoices/payment', $payment->id], 'style' => 'display:inline' ]) !!} {!! Form::button(' ' . trans('general.delete'), array( 'type' => 'button', 'class' => 'btn btn-danger btn-xs', 'title' => trans('general.delete'), 'onclick' => 'confirmDelete("' . '#invoice-payment-' . $payment->id . '", "' . trans_choice('general.payments', 2) . '", "' . trans('general.delete_confirm', ['name' => '' . Date::parse($payment->paid_at)->format($date_format) . ' - ' . money($payment->amount, $payment->currency_code, true) . ' - ' . $payment->account->name . '', 'type' => strtolower(trans_choice('general.revenues', 1))]) . '", "' . trans('general.cancel') . '", "' . trans('general.delete') . '")' )) !!} {!! Form::close() !!} |