Payment show page for portal page

This commit is contained in:
Cüneyt Şentürk
2021-06-25 10:05:41 +03:00
parent c20aa55a80
commit eb8d94a31a
2 changed files with 61 additions and 0 deletions

View File

@ -7,6 +7,7 @@ use App\Models\Banking\Transaction;
use App\Models\Setting\Currency;
use App\Http\Requests\Portal\PaymentShow as Request;
use App\Utilities\Modules;
use Illuminate\Support\Facades\URL;
class Payments extends Controller
{
@ -51,4 +52,18 @@ class Payments extends Controller
return $this->response('portal.currencies.index', compact('currencies'));
}
public function signed(Transaction $payment)
{
if (empty($payment)) {
return redirect()->route('login');
}
$payment_methods = Modules::getPaymentMethods();
$print_action = URL::signedRoute('signed.payments.print', [$payment->id]);
$pdf_action = URL::signedRoute('signed.payments.pdf', [$payment->id]);
return view('portal.payments.signed', compact('payment', 'payment_methods', 'print_action', 'pdf_action'));
}
}