mirror of
https://github.com/crater-invoice/crater.git
synced 2025-12-16 10:22:55 -05:00
Merge branch 'build-version300' into 'master'
Build version300 See merge request mohit.panjvani/crater-web!162
This commit is contained in:
@@ -9,7 +9,7 @@ DB_HOST=db
|
|||||||
DB_PORT=3306
|
DB_PORT=3306
|
||||||
DB_DATABASE=crater
|
DB_DATABASE=crater
|
||||||
DB_USERNAME=crater
|
DB_USERNAME=crater
|
||||||
DB_PASSWORD=crater
|
DB_PASSWORD="crater"
|
||||||
|
|
||||||
BROADCAST_DRIVER=log
|
BROADCAST_DRIVER=log
|
||||||
CACHE_DRIVER=file
|
CACHE_DRIVER=file
|
||||||
|
|||||||
@@ -36,7 +36,8 @@ class DashboardController extends Controller
|
|||||||
$start = Carbon::now();
|
$start = Carbon::now();
|
||||||
$end = Carbon::now();
|
$end = Carbon::now();
|
||||||
$terms = explode('-', $fiscalYear);
|
$terms = explode('-', $fiscalYear);
|
||||||
if ($terms[0] < $start->month) {
|
|
||||||
|
if ($terms[0] <= $start->month) {
|
||||||
$startDate->month($terms[0])->startOfMonth();
|
$startDate->month($terms[0])->startOfMonth();
|
||||||
$start->month($terms[0])->startOfMonth();
|
$start->month($terms[0])->startOfMonth();
|
||||||
$end->month($terms[0])->endOfMonth();
|
$end->month($terms[0])->endOfMonth();
|
||||||
@@ -93,6 +94,7 @@ class DashboardController extends Controller
|
|||||||
}
|
}
|
||||||
|
|
||||||
$start->subMonth()->endOfMonth();
|
$start->subMonth()->endOfMonth();
|
||||||
|
|
||||||
$salesTotal = Invoice::whereCompany($request->header('company'))
|
$salesTotal = Invoice::whereCompany($request->header('company'))
|
||||||
->whereBetween(
|
->whereBetween(
|
||||||
'invoice_date',
|
'invoice_date',
|
||||||
|
|||||||
@@ -168,10 +168,6 @@ class EstimatesController extends Controller
|
|||||||
$data['user'] = User::find($userId)->toArray();
|
$data['user'] = User::find($userId)->toArray();
|
||||||
$data['company'] = Company::find($estimate->company_id);
|
$data['company'] = Company::find($estimate->company_id);
|
||||||
$email = $data['user']['email'];
|
$email = $data['user']['email'];
|
||||||
$notificationEmail = CompanySetting::getSetting(
|
|
||||||
'notification_email',
|
|
||||||
$request->header('company')
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!$email) {
|
if (!$email) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
@@ -179,13 +175,13 @@ class EstimatesController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$notificationEmail) {
|
if (!config('mail.from.name')) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'error' => 'notification_email_does_not_exist'
|
'error' => 'from_email_does_not_exist'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
\Mail::to($email)->send(new EstimatePdf($data, $notificationEmail));
|
\Mail::to($email)->send(new EstimatePdf($data));
|
||||||
}
|
}
|
||||||
|
|
||||||
$estimate = Estimate::with([
|
$estimate = Estimate::with([
|
||||||
@@ -340,10 +336,6 @@ class EstimatesController extends Controller
|
|||||||
$data['company'] = Company::find($estimate->company_id);
|
$data['company'] = Company::find($estimate->company_id);
|
||||||
|
|
||||||
$email = $data['user']['email'];
|
$email = $data['user']['email'];
|
||||||
$notificationEmail = CompanySetting::getSetting(
|
|
||||||
'notification_email',
|
|
||||||
$request->header('company')
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!$email) {
|
if (!$email) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
@@ -351,13 +343,13 @@ class EstimatesController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$notificationEmail) {
|
if (!config('mail.from.name')) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'error' => 'notification_email_does_not_exist'
|
'error' => 'from_email_does_not_exist'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
\Mail::to($email)->send(new EstimatePdf($data, $notificationEmail));
|
\Mail::to($email)->send(new EstimatePdf($data));
|
||||||
|
|
||||||
if ($estimate->status == Estimate::STATUS_DRAFT) {
|
if ($estimate->status == Estimate::STATUS_DRAFT) {
|
||||||
$estimate->status = Estimate::STATUS_SENT;
|
$estimate->status = Estimate::STATUS_SENT;
|
||||||
|
|||||||
@@ -167,11 +167,6 @@ class InvoicesController extends Controller
|
|||||||
$data['user'] = User::find($request->user_id)->toArray();
|
$data['user'] = User::find($request->user_id)->toArray();
|
||||||
$data['company'] = Company::find($invoice->company_id);
|
$data['company'] = Company::find($invoice->company_id);
|
||||||
|
|
||||||
$notificationEmail = CompanySetting::getSetting(
|
|
||||||
'notification_email',
|
|
||||||
$request->header('company')
|
|
||||||
);
|
|
||||||
|
|
||||||
$email = $data['user']['email'];
|
$email = $data['user']['email'];
|
||||||
|
|
||||||
if (!$email) {
|
if (!$email) {
|
||||||
@@ -180,13 +175,13 @@ class InvoicesController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$notificationEmail) {
|
if (!config('mail.from.name')) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'error' => 'notification_email_does_not_exist'
|
'error' => 'from_email_does_not_exist'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
\Mail::to($email)->send(new invoicePdf($data, $notificationEmail));
|
\Mail::to($email)->send(new invoicePdf($data));
|
||||||
}
|
}
|
||||||
|
|
||||||
$invoice = Invoice::with(['items', 'user', 'invoiceTemplate', 'taxes'])->find($invoice->id);
|
$invoice = Invoice::with(['items', 'user', 'invoiceTemplate', 'taxes'])->find($invoice->id);
|
||||||
@@ -408,10 +403,6 @@ class InvoicesController extends Controller
|
|||||||
$data['user'] = User::find($userId)->toArray();
|
$data['user'] = User::find($userId)->toArray();
|
||||||
$data['company'] = Company::find($invoice->company_id);
|
$data['company'] = Company::find($invoice->company_id);
|
||||||
$email = $data['user']['email'];
|
$email = $data['user']['email'];
|
||||||
$notificationEmail = CompanySetting::getSetting(
|
|
||||||
'notification_email',
|
|
||||||
$request->header('company')
|
|
||||||
);
|
|
||||||
|
|
||||||
if (!$email) {
|
if (!$email) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
@@ -419,13 +410,13 @@ class InvoicesController extends Controller
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$notificationEmail) {
|
if (!config('mail.from.name')) {
|
||||||
return response()->json([
|
return response()->json([
|
||||||
'error' => 'notification_email_does_not_exist'
|
'error' => 'from_email_does_not_exist'
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
\Mail::to($email)->send(new invoicePdf($data, $notificationEmail));
|
\Mail::to($email)->send(new invoicePdf($data));
|
||||||
|
|
||||||
if ($invoice->status == Invoice::STATUS_DRAFT) {
|
if ($invoice->status == Invoice::STATUS_DRAFT) {
|
||||||
$invoice->status = Invoice::STATUS_SENT;
|
$invoice->status = Invoice::STATUS_SENT;
|
||||||
|
|||||||
@@ -12,17 +12,14 @@ class EstimatePdf extends Mailable
|
|||||||
|
|
||||||
public $data = [];
|
public $data = [];
|
||||||
|
|
||||||
public $notificationEmail = '';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new message instance.
|
* Create a new message instance.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct($data, $notificationEmail)
|
public function __construct($data)
|
||||||
{
|
{
|
||||||
$this->data = $data;
|
$this->data = $data;
|
||||||
$this->notificationEmail = $notificationEmail;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -32,6 +29,6 @@ class EstimatePdf extends Mailable
|
|||||||
*/
|
*/
|
||||||
public function build()
|
public function build()
|
||||||
{
|
{
|
||||||
return $this->from($this->notificationEmail)->markdown('emails.send.estimate', ['data', $this->data]);
|
return $this->markdown('emails.send.estimate', ['data', $this->data]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,17 +12,14 @@ class invoicePdf extends Mailable
|
|||||||
|
|
||||||
public $data = [];
|
public $data = [];
|
||||||
|
|
||||||
public $notificationEmail = '';
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a new message instance.
|
* Create a new message instance.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function __construct($data, $notificationEmail)
|
public function __construct($data)
|
||||||
{
|
{
|
||||||
$this->data = $data;
|
$this->data = $data;
|
||||||
$this->notificationEmail = $notificationEmail;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -32,6 +29,6 @@ class invoicePdf extends Mailable
|
|||||||
*/
|
*/
|
||||||
public function build()
|
public function build()
|
||||||
{
|
{
|
||||||
return $this->from($this->notificationEmail)->markdown('emails.send.invoice', ['data', $this->data]);
|
return $this->markdown('emails.send.invoice', ['data', $this->data]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class EnvironmentManager
|
|||||||
'DB_PORT='.config('database.connections.'.config('database.default').'.port')."\n".
|
'DB_PORT='.config('database.connections.'.config('database.default').'.port')."\n".
|
||||||
'DB_DATABASE='.config('database.connections.'.config('database.default').'.database')."\n".
|
'DB_DATABASE='.config('database.connections.'.config('database.default').'.database')."\n".
|
||||||
'DB_USERNAME='.config('database.connections.'.config('database.default').'.username')."\n".
|
'DB_USERNAME='.config('database.connections.'.config('database.default').'.username')."\n".
|
||||||
'DB_PASSWORD='.config('database.connections.'.config('database.default').'.password')."\n\n";
|
'DB_PASSWORD="'.config('database.connections.'.config('database.default').'.password')."\"\n\n";
|
||||||
|
|
||||||
$newDatabaseData =
|
$newDatabaseData =
|
||||||
'DB_CONNECTION='.$request->database_connection."\n".
|
'DB_CONNECTION='.$request->database_connection."\n".
|
||||||
@@ -46,7 +46,7 @@ class EnvironmentManager
|
|||||||
'DB_PORT='.$request->database_port."\n".
|
'DB_PORT='.$request->database_port."\n".
|
||||||
'DB_DATABASE='.$request->database_name."\n".
|
'DB_DATABASE='.$request->database_name."\n".
|
||||||
'DB_USERNAME='.$request->database_username."\n".
|
'DB_USERNAME='.$request->database_username."\n".
|
||||||
'DB_PASSWORD='.$request->database_password."\n\n";
|
'DB_PASSWORD="'.$request->database_password."\"\n\n";
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|||||||
2
public/assets/css/crater.css
vendored
2
public/assets/css/crater.css
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"/assets/js/app.js": "/assets/js/app.js?id=173ae96baaa64386fe81",
|
"/assets/js/app.js": "/assets/js/app.js?id=397e57d36ef22a2e14fc",
|
||||||
"/assets/css/crater.css": "/assets/css/crater.css?id=52eb9b3d184487e7c842"
|
"/assets/css/crater.css": "/assets/css/crater.css?id=616996a79c1df69d18de"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -398,6 +398,7 @@
|
|||||||
"update_payment": "تحديث الدفعة",
|
"update_payment": "تحديث الدفعة",
|
||||||
"payment": "دفعة | مدفوعات",
|
"payment": "دفعة | مدفوعات",
|
||||||
"no_payments": "لا يوجد مدفوعات حتى الآن!",
|
"no_payments": "لا يوجد مدفوعات حتى الآن!",
|
||||||
|
"no_matching_payments": "لا توجد مدفوعات مطابقة!",
|
||||||
"list_of_payments": "سوف تحتوي هذه القائمة على مدفوعات الفواتير.",
|
"list_of_payments": "سوف تحتوي هذه القائمة على مدفوعات الفواتير.",
|
||||||
"select_payment_mode": "اختر طريقة الدفع",
|
"select_payment_mode": "اختر طريقة الدفع",
|
||||||
|
|
||||||
|
|||||||
@@ -452,6 +452,7 @@
|
|||||||
"list_of_payments": "Dieser Abschnitt enthält die Liste der Zahlungen.",
|
"list_of_payments": "Dieser Abschnitt enthält die Liste der Zahlungen.",
|
||||||
"new_payment": "Neue Zahlung",
|
"new_payment": "Neue Zahlung",
|
||||||
"no_payments": "Keine Zahlungen vorhanden!",
|
"no_payments": "Keine Zahlungen vorhanden!",
|
||||||
|
"no_matching_payments": "Es gibt keine passenden Zahlungen!",
|
||||||
"note": "Hinweis",
|
"note": "Hinweis",
|
||||||
"payment": "Zahlung | Zahlungen",
|
"payment": "Zahlung | Zahlungen",
|
||||||
"payment_mode": "Zahlungsart",
|
"payment_mode": "Zahlungsart",
|
||||||
|
|||||||
@@ -409,6 +409,7 @@
|
|||||||
"update_payment": "Update Payment",
|
"update_payment": "Update Payment",
|
||||||
"payment": "Payment | Payments",
|
"payment": "Payment | Payments",
|
||||||
"no_payments": "No payments yet!",
|
"no_payments": "No payments yet!",
|
||||||
|
"no_matching_payments": "There are no matching payments!",
|
||||||
"list_of_payments": "This section will contain the list of payments.",
|
"list_of_payments": "This section will contain the list of payments.",
|
||||||
"select_payment_mode": "Select payment mode",
|
"select_payment_mode": "Select payment mode",
|
||||||
"confirm_send_payment": "This payment will be sent via email to the customer",
|
"confirm_send_payment": "This payment will be sent via email to the customer",
|
||||||
|
|||||||
@@ -397,6 +397,7 @@
|
|||||||
"update_payment": "Actualizar pago",
|
"update_payment": "Actualizar pago",
|
||||||
"payment": "Pago | Pagos",
|
"payment": "Pago | Pagos",
|
||||||
"no_payments": "¡Aún no hay pagos!",
|
"no_payments": "¡Aún no hay pagos!",
|
||||||
|
"no_matching_payments": "¡No hay pagos equivalentes!",
|
||||||
"list_of_payments": "Esta sección contendrá la lista de pagos.",
|
"list_of_payments": "Esta sección contendrá la lista de pagos.",
|
||||||
"select_payment_mode": "Seleccionar modo de pago",
|
"select_payment_mode": "Seleccionar modo de pago",
|
||||||
|
|
||||||
|
|||||||
@@ -395,6 +395,7 @@
|
|||||||
"update_payment": "Mettre à jour le paiement",
|
"update_payment": "Mettre à jour le paiement",
|
||||||
"payment": "Paiement | Paiements",
|
"payment": "Paiement | Paiements",
|
||||||
"no_payments": "Aucun paiement pour le moment!",
|
"no_payments": "Aucun paiement pour le moment!",
|
||||||
|
"no_matching_payments": "Il n'y a aucun paiement correspondant!",
|
||||||
"list_of_payments": "Cette section contiendra la liste des paiements",
|
"list_of_payments": "Cette section contiendra la liste des paiements",
|
||||||
"select_payment_mode": "Sélectionnez le mode de paiement",
|
"select_payment_mode": "Sélectionnez le mode de paiement",
|
||||||
|
|
||||||
|
|||||||
@@ -398,6 +398,7 @@
|
|||||||
"update_payment": "Atualizar Pagamento",
|
"update_payment": "Atualizar Pagamento",
|
||||||
"payment": "Pagamento | Pagamentos",
|
"payment": "Pagamento | Pagamentos",
|
||||||
"no_payments": "Ainda sem pagamentos!",
|
"no_payments": "Ainda sem pagamentos!",
|
||||||
|
"no_matching_payments": "Não há pagamentos correspondentes!",
|
||||||
"list_of_payments": "Esta seção conterá a lista de pagamentos.",
|
"list_of_payments": "Esta seção conterá a lista de pagamentos.",
|
||||||
"select_payment_mode": "Selecione a forma de pagamento",
|
"select_payment_mode": "Selecione a forma de pagamento",
|
||||||
|
|
||||||
|
|||||||
@@ -13,13 +13,13 @@ export const loadData = ({ commit, dispatch, state }, params) => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
export const getChart = ({ commit, dispatch, state }) => {
|
// export const getChart = ({ commit, dispatch, state }) => {
|
||||||
return new Promise((resolve, reject) => {
|
// return new Promise((resolve, reject) => {
|
||||||
window.axios.get(`/api/dashboard/expense/chart`).then((response) => {
|
// window.axios.get(`/api/dashboard/expense/chart`).then((response) => {
|
||||||
commit(types.SET_INITIAL_DATA, response.data)
|
// commit(types.SET_INITIAL_DATA, response.data)
|
||||||
resolve(response)
|
// resolve(response)
|
||||||
}).catch((err) => {
|
// }).catch((err) => {
|
||||||
reject(err)
|
// reject(err)
|
||||||
})
|
// })
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
|
|||||||
@@ -136,7 +136,9 @@ export const fatchItemUnit = ({ commit, dispatch, state }, id) => {
|
|||||||
export const deleteItemUnit = ({ commit, dispatch, state }, id) => {
|
export const deleteItemUnit = ({ commit, dispatch, state }, id) => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
window.axios.delete(`/api/units/${id}`).then((response) => {
|
window.axios.delete(`/api/units/${id}`).then((response) => {
|
||||||
commit(types.DELETE_ITEM_UNIT, id)
|
if (!response.data.error) {
|
||||||
|
commit(types.DELETE_ITEM_UNIT, id)
|
||||||
|
}
|
||||||
resolve(response)
|
resolve(response)
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
reject(err)
|
reject(err)
|
||||||
|
|||||||
@@ -154,7 +154,9 @@ export const fetchPaymentMode = ({ commit, dispatch, state }, data) => {
|
|||||||
export const deletePaymentMode = ({ commit, dispatch, state }, id) => {
|
export const deletePaymentMode = ({ commit, dispatch, state }, id) => {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
window.axios.delete(`/api/payment-methods/${id}`).then((response) => {
|
window.axios.delete(`/api/payment-methods/${id}`).then((response) => {
|
||||||
commit(types.DELETE_PAYMENT_MODE, id)
|
if (!response.data.error) {
|
||||||
|
commit(types.DELETE_PAYMENT_MODE, id)
|
||||||
|
}
|
||||||
resolve(response)
|
resolve(response)
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
reject(err)
|
reject(err)
|
||||||
|
|||||||
@@ -4,9 +4,15 @@
|
|||||||
<div class="page-header">
|
<div class="page-header">
|
||||||
<h3 class="page-title">{{ isEdit ? $t('customers.edit_customer') : $t('customers.new_customer') }}</h3>
|
<h3 class="page-title">{{ isEdit ? $t('customers.edit_customer') : $t('customers.new_customer') }}</h3>
|
||||||
<ol class="breadcrumb">
|
<ol class="breadcrumb">
|
||||||
<li class="breadcrumb-item"><router-link slot="item-title" to="/admin/dashboard">{{ $t('general.home') }}</router-link></li>
|
<li class="breadcrumb-item">
|
||||||
<li class="breadcrumb-item"><router-link slot="item-title" to="/admin/customers">{{ $tc('customers.customer', 2) }}</router-link></li>
|
<router-link slot="item-title" to="/admin/dashboard">{{ $t('general.home') }}</router-link>
|
||||||
<li class="breadcrumb-item">{{ isEdit ? $t('customers.edit_customer') : $t('customers.new_customer') }}</li>
|
</li>
|
||||||
|
<li class="breadcrumb-item">
|
||||||
|
<router-link slot="item-title" to="/admin/customers">{{ $tc('customers.customer', 2) }}</router-link>
|
||||||
|
</li>
|
||||||
|
<li class="breadcrumb-item">
|
||||||
|
{{ isEdit ? $t('customers.edit_customer') : $t('customers.new_customer') }}
|
||||||
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
<div class="page-actions header-button-container">
|
<div class="page-actions header-button-container">
|
||||||
<base-button
|
<base-button
|
||||||
@@ -38,8 +44,12 @@
|
|||||||
@input="$v.formData.name.$touch()"
|
@input="$v.formData.name.$touch()"
|
||||||
/>
|
/>
|
||||||
<div v-if="$v.formData.name.$error">
|
<div v-if="$v.formData.name.$error">
|
||||||
<span v-if="!$v.formData.name.required" class="text-danger">{{ $tc('validation.required') }}</span>
|
<span v-if="!$v.formData.name.required" class="text-danger">
|
||||||
<span v-if="!$v.formData.name.minLength" class="text-danger"> {{ $tc('validation.name_min_length', $v.formData.name.$params.minLength.min, { count: $v.formData.name.$params.minLength.min }) }} </span>
|
{{ $tc('validation.required') }}
|
||||||
|
</span>
|
||||||
|
<span v-if="!$v.formData.name.minLength" class="text-danger">
|
||||||
|
{{ $tc('validation.name_min_length', $v.formData.name.$params.minLength.min, { count: $v.formData.name.$params.minLength.min }) }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -53,7 +63,9 @@
|
|||||||
@input="$v.formData.email.$touch()"
|
@input="$v.formData.email.$touch()"
|
||||||
/>
|
/>
|
||||||
<div v-if="$v.formData.email.$error">
|
<div v-if="$v.formData.email.$error">
|
||||||
<span v-if="!$v.formData.email.email" class="text-danger"> {{ $tc('validation.email_incorrect') }} </span>
|
<span v-if="!$v.formData.email.email" class="text-danger">
|
||||||
|
{{ $tc('validation.email_incorrect') }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -97,10 +109,13 @@
|
|||||||
v-model="formData.website"
|
v-model="formData.website"
|
||||||
:invalid="$v.formData.website.$error"
|
:invalid="$v.formData.website.$error"
|
||||||
type="url"
|
type="url"
|
||||||
|
tab-index="6"
|
||||||
@input="$v.formData.website.$touch()"
|
@input="$v.formData.website.$touch()"
|
||||||
/>
|
/>
|
||||||
<div v-if="$v.formData.website.$error">
|
<div v-if="$v.formData.website.$error">
|
||||||
<span v-if="!$v.formData.website.url" class="text-danger">{{ $tc('validation.invalid_url') }}</span>
|
<span v-if="!$v.formData.website.url" class="text-danger">
|
||||||
|
{{ $tc('validation.invalid_url') }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -124,6 +139,7 @@
|
|||||||
v-model="billing.state"
|
v-model="billing.state"
|
||||||
name="billing.state"
|
name="billing.state"
|
||||||
type="text"
|
type="text"
|
||||||
|
tab-index="9"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -138,7 +154,9 @@
|
|||||||
@input="$v.billing.address_street_1.$touch()"
|
@input="$v.billing.address_street_1.$touch()"
|
||||||
/>
|
/>
|
||||||
<div v-if="$v.billing.address_street_1.$error">
|
<div v-if="$v.billing.address_street_1.$error">
|
||||||
<span v-if="!$v.billing.address_street_1.maxLength" class="text-danger">{{ $t('validation.address_maxlength') }}</span>
|
<span v-if="!$v.billing.address_street_1.maxLength" class="text-danger">
|
||||||
|
{{ $t('validation.address_maxlength') }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<base-text-area
|
<base-text-area
|
||||||
:tabindex="12"
|
:tabindex="12"
|
||||||
@@ -150,7 +168,9 @@
|
|||||||
@input="$v.billing.address_street_2.$touch()"
|
@input="$v.billing.address_street_2.$touch()"
|
||||||
/>
|
/>
|
||||||
<div v-if="$v.billing.address_street_2.$error">
|
<div v-if="$v.billing.address_street_2.$error">
|
||||||
<span v-if="!$v.billing.address_street_2.maxLength" class="text-danger">{{ $t('validation.address_maxlength') }}</span>
|
<span v-if="!$v.billing.address_street_2.maxLength" class="text-danger">
|
||||||
|
{{ $t('validation.address_maxlength') }}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -175,6 +195,7 @@
|
|||||||
v-model="billing.city"
|
v-model="billing.city"
|
||||||
name="billing.city"
|
name="billing.city"
|
||||||
type="text"
|
type="text"
|
||||||
|
tab-index="10"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -226,6 +247,7 @@
|
|||||||
v-model="shipping.state"
|
v-model="shipping.state"
|
||||||
name="shipping.state"
|
name="shipping.state"
|
||||||
type="text"
|
type="text"
|
||||||
|
tab-index="17"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@@ -277,6 +299,7 @@
|
|||||||
v-model="shipping.city"
|
v-model="shipping.city"
|
||||||
name="shipping.city"
|
name="shipping.city"
|
||||||
type="text"
|
type="text"
|
||||||
|
tab-index="18"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|||||||
@@ -398,7 +398,6 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created () {
|
created () {
|
||||||
this.loadChart()
|
|
||||||
this.loadData()
|
this.loadData()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -422,11 +421,6 @@ export default {
|
|||||||
'markEstimateAsSent': 'markAsSent'
|
'markEstimateAsSent': 'markAsSent'
|
||||||
}),
|
}),
|
||||||
|
|
||||||
async loadChart () {
|
|
||||||
await this.$store.dispatch('dashboard/getChart')
|
|
||||||
this.isLoaded = true
|
|
||||||
},
|
|
||||||
|
|
||||||
async loadData (params) {
|
async loadData (params) {
|
||||||
await this.$store.dispatch('dashboard/loadData', params)
|
await this.$store.dispatch('dashboard/loadData', params)
|
||||||
this.isLoaded = true
|
this.isLoaded = true
|
||||||
@@ -434,7 +428,7 @@ export default {
|
|||||||
|
|
||||||
async removeEstimate (id) {
|
async removeEstimate (id) {
|
||||||
this.id = id
|
this.id = id
|
||||||
swal({
|
window.swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$tc('estimates.confirm_delete', 1),
|
text: this.$tc('estimates.confirm_delete', 1),
|
||||||
icon: '/assets/icon/trash-solid.svg',
|
icon: '/assets/icon/trash-solid.svg',
|
||||||
@@ -462,7 +456,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async convertInToinvoice (id) {
|
async convertInToinvoice (id) {
|
||||||
swal({
|
window.swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$t('estimates.confirm_conversion'),
|
text: this.$t('estimates.confirm_conversion'),
|
||||||
icon: '/assets/icon/file-alt-solid.svg',
|
icon: '/assets/icon/file-alt-solid.svg',
|
||||||
@@ -483,7 +477,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async onMarkAsSent (id) {
|
async onMarkAsSent (id) {
|
||||||
swal({
|
window.swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$t('estimates.confirm_mark_as_sent'),
|
text: this.$t('estimates.confirm_mark_as_sent'),
|
||||||
icon: '/assets/icon/check-circle-solid.svg',
|
icon: '/assets/icon/check-circle-solid.svg',
|
||||||
@@ -505,7 +499,7 @@ export default {
|
|||||||
|
|
||||||
async removeInvoice (id) {
|
async removeInvoice (id) {
|
||||||
this.id = id
|
this.id = id
|
||||||
swal({
|
window.swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$tc('invoices.confirm_delete'),
|
text: this.$tc('invoices.confirm_delete'),
|
||||||
icon: '/assets/icon/trash-solid.svg',
|
icon: '/assets/icon/trash-solid.svg',
|
||||||
@@ -525,7 +519,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async sendInvoice (id) {
|
async sendInvoice (id) {
|
||||||
swal({
|
window.swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$t('invoices.confirm_send'),
|
text: this.$t('invoices.confirm_send'),
|
||||||
icon: '/assets/icon/paper-plane-solid.svg',
|
icon: '/assets/icon/paper-plane-solid.svg',
|
||||||
@@ -552,7 +546,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async sentInvoice (id) {
|
async sentInvoice (id) {
|
||||||
swal({
|
window.swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$t('invoices.invoice_mark_as_sent'),
|
text: this.$t('invoices.invoice_mark_as_sent'),
|
||||||
icon: '/assets/icon/check-circle-solid.svg',
|
icon: '/assets/icon/check-circle-solid.svg',
|
||||||
@@ -573,7 +567,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async onMarkAsAccepted (id) {
|
async onMarkAsAccepted (id) {
|
||||||
swal({
|
window.swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$t('estimates.confirm_mark_as_accepted'),
|
text: this.$t('estimates.confirm_mark_as_accepted'),
|
||||||
icon: '/assets/icon/check-circle-solid.svg',
|
icon: '/assets/icon/check-circle-solid.svg',
|
||||||
@@ -595,7 +589,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async onMarkAsRejected (id) {
|
async onMarkAsRejected (id) {
|
||||||
swal({
|
window.swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$t('estimates.confirm_mark_as_rejected'),
|
text: this.$t('estimates.confirm_mark_as_rejected'),
|
||||||
icon: '/assets/icon/times-circle-solid.svg',
|
icon: '/assets/icon/times-circle-solid.svg',
|
||||||
@@ -617,7 +611,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
async sendEstimate (id) {
|
async sendEstimate (id) {
|
||||||
swal({
|
window.swal({
|
||||||
title: this.$t('general.are_you_sure'),
|
title: this.$t('general.are_you_sure'),
|
||||||
text: this.$t('estimates.confirm_send_estimate'),
|
text: this.$t('estimates.confirm_send_estimate'),
|
||||||
icon: '/assets/icon/paper-plane-solid.svg',
|
icon: '/assets/icon/paper-plane-solid.svg',
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
<p v-if="!payments.length" class="no-result">
|
<p v-if="!payments.length" class="no-result">
|
||||||
{{ $t('payments.no_matching_invoices') }}
|
{{ $t('payments.no_matching_payments') }}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -199,11 +199,9 @@ export default {
|
|||||||
if (!this.getReports()) {
|
if (!this.getReports()) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (navigator.appVersion.indexOf('Mac') !== -1) {
|
|
||||||
this.url += '&download=true'
|
window.open(this.getReportUrl + '&download=true')
|
||||||
} else {
|
|
||||||
window.open(this.getReportUrl + '&download=true')
|
|
||||||
}
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.url = `${this.siteURL}?from_date=${moment(this.formData.from_date).format('DD/MM/YYYY')}&to_date=${moment(this.formData.to_date).format('DD/MM/YYYY')}`
|
this.url = `${this.siteURL}?from_date=${moment(this.formData.from_date).format('DD/MM/YYYY')}&to_date=${moment(this.formData.to_date).format('DD/MM/YYYY')}`
|
||||||
}, 200)
|
}, 200)
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ export default {
|
|||||||
this.loadProfitLossLink(this.url + '&download=true')
|
this.loadProfitLossLink(this.url + '&download=true')
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapActions('profitLossReport',[
|
...mapActions('profitLossReport', [
|
||||||
'loadProfitLossLink'
|
'loadProfitLossLink'
|
||||||
]),
|
]),
|
||||||
getThisDate (type, time) {
|
getThisDate (type, time) {
|
||||||
@@ -203,11 +203,8 @@ export default {
|
|||||||
if (!this.getReports()) {
|
if (!this.getReports()) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (navigator.appVersion.indexOf('Mac') !== -1) {
|
|
||||||
this.url += '&download=true'
|
window.open(this.getReportUrl + '&download=true')
|
||||||
} else {
|
|
||||||
window.open(this.getReportUrl + '&download=true')
|
|
||||||
}
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.url = `${this.siteURL}?from_date=${moment(this.formData.from_date).format('DD/MM/YYYY')}&to_date=${moment(this.formData.to_date).format('DD/MM/YYYY')}`
|
this.url = `${this.siteURL}?from_date=${moment(this.formData.from_date).format('DD/MM/YYYY')}&to_date=${moment(this.formData.to_date).format('DD/MM/YYYY')}`
|
||||||
}, 200)
|
}, 200)
|
||||||
|
|||||||
@@ -234,11 +234,8 @@ export default {
|
|||||||
if (!this.getReports()) {
|
if (!this.getReports()) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (navigator.appVersion.indexOf('Mac') !== -1) {
|
|
||||||
this.url += '&download=true'
|
window.open(this.getReportUrl + '&download=true')
|
||||||
} else {
|
|
||||||
window.open(this.getReportUrl + '&download=true')
|
|
||||||
}
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (this.selectedType === 'By Customer') {
|
if (this.selectedType === 'By Customer') {
|
||||||
this.url = `${this.customerSiteURL}?from_date=${moment(this.formData.from_date).format('DD/MM/YYYY')}&to_date=${moment(this.formData.to_date).format('DD/MM/YYYY')}`
|
this.url = `${this.customerSiteURL}?from_date=${moment(this.formData.from_date).format('DD/MM/YYYY')}&to_date=${moment(this.formData.to_date).format('DD/MM/YYYY')}`
|
||||||
|
|||||||
@@ -49,7 +49,8 @@
|
|||||||
<div class="col-sm-8 reports-tab-container">
|
<div class="col-sm-8 reports-tab-container">
|
||||||
<iframe :src="getReportUrl" class="reports-frame-style"/>
|
<iframe :src="getReportUrl" class="reports-frame-style"/>
|
||||||
<a class="base-button btn btn-primary btn-lg report-view-button" @click="viewReportsPDF">
|
<a class="base-button btn btn-primary btn-lg report-view-button" @click="viewReportsPDF">
|
||||||
<font-awesome-icon icon="file-pdf" class="vue-icon icon-left svg-inline--fa fa-download fa-w-16 mr-2" /> <span>{{ $t('reports.view_pdf') }}</span>
|
<font-awesome-icon icon="file-pdf" class="vue-icon icon-left svg-inline--fa fa-download fa-w-16 mr-2" />
|
||||||
|
<span>{{ $t('reports.view_pdf') }}</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -199,11 +200,9 @@ export default {
|
|||||||
if (!this.getReports()) {
|
if (!this.getReports()) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
if (navigator.appVersion.indexOf('Mac') !== -1) {
|
|
||||||
this.url += '&download=true'
|
window.open(this.url + '&download=true')
|
||||||
} else {
|
|
||||||
window.open(this.url + '&download=true')
|
|
||||||
}
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.url = `${this.siteURL}?from_date=${moment(this.formData.from_date).format('DD/MM/YYYY')}&to_date=${moment(this.formData.to_date).format('DD/MM/YYYY')}`
|
this.url = `${this.siteURL}?from_date=${moment(this.formData.from_date).format('DD/MM/YYYY')}&to_date=${moment(this.formData.to_date).format('DD/MM/YYYY')}`
|
||||||
}, 200)
|
}, 200)
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
@endif
|
@endif
|
||||||
<p class="bill-user-address">
|
<p class="bill-user-address">
|
||||||
@if($estimate->user->billingaddress->address_street_1)
|
@if($estimate->user->billingaddress->address_street_1)
|
||||||
{{$estimate->user->billingaddress->address_street_1}}<br>
|
{!! nl2br(htmlspecialchars($estimate->user->billingaddress->address_street_1)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($estimate->user->billingaddress->address_street_2)
|
@if($estimate->user->billingaddress->address_street_2)
|
||||||
{{$estimate->user->billingaddress->address_street_2}}<br>
|
{!! nl2br(htmlspecialchars($estimate->user->billingaddress->address_street_2)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($estimate->user->billingaddress->city)
|
@if($estimate->user->billingaddress->city)
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
@if($company_address)
|
@if($company_address)
|
||||||
<p class="company-add">
|
<p class="company-add">
|
||||||
@if($company_address->addresses[0]['address_street_1'])
|
@if($company_address->addresses[0]['address_street_1'])
|
||||||
{{$company_address->addresses[0]['address_street_1']}} <br>
|
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($company_address->addresses[0]['address_street_2'])
|
@if($company_address->addresses[0]['address_street_2'])
|
||||||
{{$company_address->addresses[0]['address_street_2']}} <br>
|
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_2'])) !!} <br>
|
||||||
@endif
|
@endif
|
||||||
@if($company_address->addresses[0]['city'])
|
@if($company_address->addresses[0]['city'])
|
||||||
{{$company_address->addresses[0]['city']}}
|
{{$company_address->addresses[0]['city']}}
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
@endif
|
@endif
|
||||||
<p class="ship-user-address">
|
<p class="ship-user-address">
|
||||||
@if($estimate->user->shippingaddress->address_street_1)
|
@if($estimate->user->shippingaddress->address_street_1)
|
||||||
{{$estimate->user->shippingaddress->address_street_1}}<br>
|
{!! nl2br(htmlspecialchars($estimate->user->shippingaddress->address_street_1)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($estimate->user->shippingaddress->address_street_2)
|
@if($estimate->user->shippingaddress->address_street_2)
|
||||||
{{$estimate->user->shippingaddress->address_street_2}}<br>
|
{!! nl2br(htmlspecialchars($estimate->user->shippingaddress->address_street_2)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($estimate->user->shippingaddress->city && $estimate->user->shippingaddress->city)
|
@if($estimate->user->shippingaddress->city && $estimate->user->shippingaddress->city)
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
@endif
|
@endif
|
||||||
<p class="bill-user-address">
|
<p class="bill-user-address">
|
||||||
@if($invoice->user->billingaddress->address_street_1)
|
@if($invoice->user->billingaddress->address_street_1)
|
||||||
{{$invoice->user->billingaddress->address_street_1}}<br>
|
{!! nl2br(htmlspecialchars($invoice->user->billingaddress->address_street_1)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
@if($invoice->user->billingaddress->address_street_2)
|
@if($invoice->user->billingaddress->address_street_2)
|
||||||
{{$invoice->user->billingaddress->address_street_2}}<br>
|
{!! nl2br(htmlspecialchars($invoice->user->billingaddress->address_street_2)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
@if($invoice->user->billingaddress->city && $invoice->user->billingaddress->city)
|
@if($invoice->user->billingaddress->city && $invoice->user->billingaddress->city)
|
||||||
{{$invoice->user->billingaddress->city}},
|
{{$invoice->user->billingaddress->city}},
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
@if($company_address)
|
@if($company_address)
|
||||||
<p class="company-add">
|
<p class="company-add">
|
||||||
@if($company_address->addresses[0]['address_street_1'])
|
@if($company_address->addresses[0]['address_street_1'])
|
||||||
{{$company_address->addresses[0]['address_street_1']}} <br>
|
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($company_address->addresses[0]['address_street_2'])
|
@if($company_address->addresses[0]['address_street_2'])
|
||||||
{{$company_address->addresses[0]['address_street_2']}} <br>
|
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_2'])) !!} <br>
|
||||||
@endif
|
@endif
|
||||||
@if($company_address->addresses[0]['city'])
|
@if($company_address->addresses[0]['city'])
|
||||||
{{$company_address->addresses[0]['city']}}
|
{{$company_address->addresses[0]['city']}}
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
@endif
|
@endif
|
||||||
<p class="ship-user-address">
|
<p class="ship-user-address">
|
||||||
@if($invoice->user->shippingaddress->address_street_1)
|
@if($invoice->user->shippingaddress->address_street_1)
|
||||||
{{$invoice->user->shippingaddress->address_street_1}}<br>
|
{!! nl2br(htmlspecialchars($invoice->user->shippingaddress->address_street_1)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($invoice->user->shippingaddress->address_street_2)
|
@if($invoice->user->shippingaddress->address_street_2)
|
||||||
{{$invoice->user->shippingaddress->address_street_2}}<br>
|
{!! nl2br(htmlspecialchars($invoice->user->shippingaddress->address_street_2)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($invoice->user->shippingaddress->city && $invoice->user->shippingaddress->city)
|
@if($invoice->user->shippingaddress->city && $invoice->user->shippingaddress->city)
|
||||||
|
|||||||
@@ -7,10 +7,10 @@
|
|||||||
@endif
|
@endif
|
||||||
<p class="bill-user-address">
|
<p class="bill-user-address">
|
||||||
@if($payment->user->billingaddress->address_street_1)
|
@if($payment->user->billingaddress->address_street_1)
|
||||||
{{$payment->user->billingaddress->address_street_1}}<br>
|
{!! nl2br(htmlspecialchars($payment->user->billingaddress->address_street_1)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
@if($payment->user->billingaddress->address_street_2)
|
@if($payment->user->billingaddress->address_street_2)
|
||||||
{{$payment->user->billingaddress->address_street_2}}<br>
|
{!! nl2br(htmlspecialchars($payment->user->billingaddress->address_street_2)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
@if($payment->user->billingaddress->city && $payment->user->billingaddress->city)
|
@if($payment->user->billingaddress->city && $payment->user->billingaddress->city)
|
||||||
{{$payment->user->billingaddress->city}},
|
{{$payment->user->billingaddress->city}},
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
@if($company_address)
|
@if($company_address)
|
||||||
<p class="company-add">
|
<p class="company-add">
|
||||||
@if($company_address->addresses[0]['address_street_1'])
|
@if($company_address->addresses[0]['address_street_1'])
|
||||||
{{$company_address->addresses[0]['address_street_1']}} <br>
|
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_1'])) !!} <br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($company_address->addresses[0]['address_street_2'])
|
@if($company_address->addresses[0]['address_street_2'])
|
||||||
{{$company_address->addresses[0]['address_street_2']}} <br>
|
{!! nl2br(htmlspecialchars($company_address->addresses[0]['address_street_2'])) !!} <br>
|
||||||
@endif
|
@endif
|
||||||
@if($company_address->addresses[0]['city'])
|
@if($company_address->addresses[0]['city'])
|
||||||
{{$company_address->addresses[0]['city']}}
|
{{$company_address->addresses[0]['city']}}
|
||||||
|
|||||||
@@ -7,11 +7,11 @@
|
|||||||
@endif
|
@endif
|
||||||
<p class="ship-user-address">
|
<p class="ship-user-address">
|
||||||
@if($payment->user->shippingaddress->address_street_1)
|
@if($payment->user->shippingaddress->address_street_1)
|
||||||
{{$payment->user->shippingaddress->address_street_1}}<br>
|
{!! nl2br(htmlspecialchars($payment->user->shippingaddress->address_street_1)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($payment->user->shippingaddress->address_street_2)
|
@if($payment->user->shippingaddress->address_street_2)
|
||||||
{{$payment->user->shippingaddress->address_street_2}}<br>
|
{!! nl2br(htmlspecialchars($payment->user->shippingaddress->address_street_2)) !!}<br>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if($payment->user->shippingaddress->city && $payment->user->shippingaddress->city)
|
@if($payment->user->shippingaddress->city && $payment->user->shippingaddress->city)
|
||||||
|
|||||||
Reference in New Issue
Block a user