Invoice page added customer share link
This commit is contained in:
parent
7ee300e5d1
commit
c680ccf8f7
@ -36,6 +36,7 @@ use File;
|
||||
use Illuminate\Http\Request as ItemRequest;
|
||||
use Image;
|
||||
use Storage;
|
||||
use SignedUrl;
|
||||
|
||||
class Invoices extends Controller
|
||||
{
|
||||
@ -117,7 +118,9 @@ class Invoices extends Controller
|
||||
|
||||
$payment_methods = Modules::getPaymentMethods();
|
||||
|
||||
return view('incomes.invoices.show', compact('invoice', 'accounts', 'currencies', 'account_currency_code', 'customers', 'categories', 'payment_methods'));
|
||||
$customer_share = SignedUrl::sign(url('links/invoices/' . $invoice->id));
|
||||
|
||||
return view('incomes.invoices.show', compact('invoice', 'accounts', 'currencies', 'account_currency_code', 'customers', 'categories', 'payment_methods', 'customer_share'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -20,7 +20,11 @@ class Modules
|
||||
|
||||
$payment_methods = Cache::get($cache_admin);
|
||||
|
||||
$customer = true;
|
||||
|
||||
if (auth()->user()) {
|
||||
$customer = auth()->user()->customer;
|
||||
}
|
||||
|
||||
if ($customer && $type != 'all') {
|
||||
$payment_methods = Cache::get($cache_customer);
|
||||
|
4
public/css/app.css
vendored
4
public/css/app.css
vendored
@ -736,3 +736,7 @@ input[type="number"] {
|
||||
border-radius: 0px;
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
.link .content-wrapper, .link .right-side, .link .main-footer {
|
||||
margin-left: inherit;
|
||||
}
|
@ -168,6 +168,9 @@
|
||||
<a href="{{ url('incomes/invoices/' . $invoice->id . '/print') }}" target="_blank" class="btn btn-success">
|
||||
<i class="fa fa-print"></i> {{ trans('general.print') }}
|
||||
</a>
|
||||
<a href="{{ $customer_share }}" target="_blank" class="btn btn-primary">
|
||||
<i class="fa fa-share"></i> Share
|
||||
</a>
|
||||
<div class="btn-group dropup">
|
||||
<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><i class="fa fa-chevron-circle-up"></i> {{ trans('general.more_actions') }}</button>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
|
Loading…
x
Reference in New Issue
Block a user