language fix

This commit is contained in:
denisdulici 2018-12-11 18:42:27 +03:00
parent 8c312ad6cb
commit 8e67b33c29
4 changed files with 87 additions and 81 deletions

View File

@ -2,54 +2,57 @@
return [ return [
'bill_number' => 'Bill Number', 'bill_number' => 'Bill Number',
'bill_date' => 'Bill Date', 'bill_date' => 'Bill Date',
'total_price' => 'Total Price', 'total_price' => 'Total Price',
'due_date' => 'Due Date', 'due_date' => 'Due Date',
'order_number' => 'Order Number', 'order_number' => 'Order Number',
'bill_from' => 'Bill From', 'bill_from' => 'Bill From',
'quantity' => 'Quantity', 'quantity' => 'Quantity',
'price' => 'Price', 'price' => 'Price',
'sub_total' => 'Subtotal', 'sub_total' => 'Subtotal',
'discount' => 'Discount', 'discount' => 'Discount',
'tax_total' => 'Tax Total', 'tax_total' => 'Tax Total',
'total' => 'Total', 'total' => 'Total',
'item_name' => 'Item Name|Item Names', 'item_name' => 'Item Name|Item Names',
'show_discount' => ':discount% Discount', 'show_discount' => ':discount% Discount',
'add_discount' => 'Add Discount', 'add_discount' => 'Add Discount',
'discount_desc' => 'of subtotal', 'discount_desc' => 'of subtotal',
'payment_due' => 'Payment Due', 'payment_due' => 'Payment Due',
'amount_due' => 'Amount Due', 'amount_due' => 'Amount Due',
'paid' => 'Paid', 'paid' => 'Paid',
'histories' => 'Histories', 'histories' => 'Histories',
'payments' => 'Payments', 'payments' => 'Payments',
'add_payment' => 'Add Payment', 'add_payment' => 'Add Payment',
'mark_received' => 'Mark Received', 'mark_received' => 'Mark Received',
'download_pdf' => 'Download PDF', 'download_pdf' => 'Download PDF',
'send_mail' => 'Send Email', 'send_mail' => 'Send Email',
'create_bill' => 'Create Bill',
'receive_bill' => 'Receive Bill',
'make_payment' => 'Make Payment',
'status' => [ 'status' => [
'draft' => 'Draft', 'draft' => 'Draft',
'received' => 'Received', 'received' => 'Received',
'partial' => 'Partial', 'partial' => 'Partial',
'paid' => 'Paid', 'paid' => 'Paid',
], ],
'messages' => [ 'messages' => [
'received' => 'Bill marked as received successfully!', 'received' => 'Bill marked as received successfully!',
'draft' => 'This is a <b>DRAFT</b> bill and will be reflected to charts after it gets received.', 'draft' => 'This is a <b>DRAFT</b> bill and will be reflected to charts after it gets received.',
'status' => [ 'status' => [
'created' => 'Created on :date', 'created' => 'Created on :date',
'receive' => [ 'receive' => [
'draft' => 'Not sent', 'draft' => 'Not sent',
'received' => 'Received on :date', 'received' => 'Received on :date',
], ],
'paid' => [ 'paid' => [
'await' => 'Awaiting payment', 'await' => 'Awaiting payment',
], ],
], ],

View File

@ -2,67 +2,70 @@
return [ return [
'invoice_number' => 'Invoice Number', 'invoice_number' => 'Invoice Number',
'invoice_date' => 'Invoice Date', 'invoice_date' => 'Invoice Date',
'total_price' => 'Total Price', 'total_price' => 'Total Price',
'due_date' => 'Due Date', 'due_date' => 'Due Date',
'order_number' => 'Order Number', 'order_number' => 'Order Number',
'bill_to' => 'Bill To', 'bill_to' => 'Bill To',
'quantity' => 'Quantity', 'quantity' => 'Quantity',
'price' => 'Price', 'price' => 'Price',
'sub_total' => 'Subtotal', 'sub_total' => 'Subtotal',
'discount' => 'Discount', 'discount' => 'Discount',
'tax_total' => 'Tax Total', 'tax_total' => 'Tax Total',
'total' => 'Total', 'total' => 'Total',
'item_name' => 'Item Name|Item Names', 'item_name' => 'Item Name|Item Names',
'show_discount' => ':discount% Discount', 'show_discount' => ':discount% Discount',
'add_discount' => 'Add Discount', 'add_discount' => 'Add Discount',
'discount_desc' => 'of subtotal', 'discount_desc' => 'of subtotal',
'payment_due' => 'Payment Due', 'payment_due' => 'Payment Due',
'paid' => 'Paid', 'paid' => 'Paid',
'histories' => 'Histories', 'histories' => 'Histories',
'payments' => 'Payments', 'payments' => 'Payments',
'add_payment' => 'Add Payment', 'add_payment' => 'Add Payment',
'mark_paid' => 'Mark Paid', 'mark_paid' => 'Mark Paid',
'mark_sent' => 'Mark Sent', 'mark_sent' => 'Mark Sent',
'download_pdf' => 'Download PDF', 'download_pdf' => 'Download PDF',
'send_mail' => 'Send Email', 'send_mail' => 'Send Email',
'all_invoices' => 'Login to view all invoices', 'all_invoices' => 'Login to view all invoices',
'create_invoice' => 'Create Invoice',
'send_invoice' => 'Send Invoice',
'get_paid' => 'Get Paid',
'status' => [ 'status' => [
'draft' => 'Draft', 'draft' => 'Draft',
'sent' => 'Sent', 'sent' => 'Sent',
'viewed' => 'Viewed', 'viewed' => 'Viewed',
'approved' => 'Approved', 'approved' => 'Approved',
'partial' => 'Partial', 'partial' => 'Partial',
'paid' => 'Paid', 'paid' => 'Paid',
], ],
'messages' => [ 'messages' => [
'email_sent' => 'Invoice email has been sent successfully!', 'email_sent' => 'Invoice email has been sent successfully!',
'marked_sent' => 'Invoice marked as sent successfully!', 'marked_sent' => 'Invoice marked as sent successfully!',
'email_required' => 'No email address for this customer!', 'email_required' => 'No email address for this customer!',
'draft' => 'This is a <b>DRAFT</b> invoice and will be reflected to charts after it gets sent.', 'draft' => 'This is a <b>DRAFT</b> invoice and will be reflected to charts after it gets sent.',
'status' => [ 'status' => [
'created' => 'Created on :date', 'created' => 'Created on :date',
'send' => [ 'send' => [
'draft' => 'Not sent', 'draft' => 'Not sent',
'sent' => 'Sent on :date', 'sent' => 'Sent on :date',
], ],
'paid' => [ 'paid' => [
'await' => 'Awaiting payment', 'await' => 'Awaiting payment',
], ],
], ],
], ],
'notification' => [ 'notification' => [
'message' => 'You are receiving this email because you have an upcoming :amount invoice to :customer customer.', 'message' => 'You are receiving this email because you have an upcoming :amount invoice to :customer customer.',
'button' => 'Pay Now', 'button' => 'Pay Now',
], ],
]; ];

View File

@ -29,7 +29,7 @@
<i class="fa fa-plus bg-blue"></i> <i class="fa fa-plus bg-blue"></i>
<div class="timeline-item"> <div class="timeline-item">
<h3 class="timeline-header">{{ trans('general.title.create', ['type' => trans_choice('general.bills', 1)]) }}</h3> <h3 class="timeline-header">{{ trans('bills.create_bill') }}</h3>
<div class="timeline-body"> <div class="timeline-body">
{{ trans_choice('general.statuses', 1) . ': ' . trans('bills.messages.status.created', ['date' => Date::parse($bill->created_at)->format($date_format)]) }} {{ trans_choice('general.statuses', 1) . ': ' . trans('bills.messages.status.created', ['date' => Date::parse($bill->created_at)->format($date_format)]) }}
@ -44,7 +44,7 @@
<i class="fa fa-envelope bg-orange"></i> <i class="fa fa-envelope bg-orange"></i>
<div class="timeline-item"> <div class="timeline-item">
<h3 class="timeline-header">{{ trans('general.title.send', ['type' => trans_choice('general.bills', 1)]) }}</h3> <h3 class="timeline-header">{{ trans('bills.receive_bill') }}</h3>
<div class="timeline-body"> <div class="timeline-body">
@if ($bill->status->code == 'draft') @if ($bill->status->code == 'draft')
@ -63,7 +63,7 @@
<i class="fa fa-money bg-green"></i> <i class="fa fa-money bg-green"></i>
<div class="timeline-item"> <div class="timeline-item">
<h3 class="timeline-header">{{ trans('general.title.get', ['type' => trans('general.paid')]) }}</h3> <h3 class="timeline-header">{{ trans('bills.make_payment') }}</h3>
<div class="timeline-body"> <div class="timeline-body">
@if($bill->status->code != 'paid' && empty($bill->payments()->count())) @if($bill->status->code != 'paid' && empty($bill->payments()->count()))

View File

@ -29,7 +29,7 @@
<i class="fa fa-plus bg-blue"></i> <i class="fa fa-plus bg-blue"></i>
<div class="timeline-item"> <div class="timeline-item">
<h3 class="timeline-header">{{ trans('general.title.create', ['type' => trans_choice('general.invoices', 1)]) }}</h3> <h3 class="timeline-header">{{ trans('invoices.create_invoice') }}</h3>
<div class="timeline-body"> <div class="timeline-body">
{{ trans_choice('general.statuses', 1) . ': ' . trans('invoices.messages.status.created', ['date' => Date::parse($invoice->created_at)->format($date_format)]) }} {{ trans_choice('general.statuses', 1) . ': ' . trans('invoices.messages.status.created', ['date' => Date::parse($invoice->created_at)->format($date_format)]) }}
@ -44,7 +44,7 @@
<i class="fa fa-envelope bg-orange"></i> <i class="fa fa-envelope bg-orange"></i>
<div class="timeline-item"> <div class="timeline-item">
<h3 class="timeline-header">{{ trans('general.title.send', ['type' => trans_choice('general.invoices', 1)]) }}</h3> <h3 class="timeline-header">{{ trans('invoices.send_invoice') }}</h3>
<div class="timeline-body"> <div class="timeline-body">
@if ($invoice->status->code != 'sent' && $invoice->status->code != 'partial') @if ($invoice->status->code != 'sent' && $invoice->status->code != 'partial')
@ -74,7 +74,7 @@
<i class="fa fa-money bg-green"></i> <i class="fa fa-money bg-green"></i>
<div class="timeline-item"> <div class="timeline-item">
<h3 class="timeline-header">{{ trans('general.title.get', ['type' => trans('general.paid')]) }}</h3> <h3 class="timeline-header">{{ trans('invoices.get_paid') }}</h3>
<div class="timeline-body"> <div class="timeline-body">
@if($invoice->status->code != 'paid' && empty($invoice->payments()->count())) @if($invoice->status->code != 'paid' && empty($invoice->payments()->count()))