Initial commit

This commit is contained in:
Zakwan Hamdan
2020-10-19 10:12:55 +08:00
commit 60afe5d1ba
300 changed files with 144332 additions and 0 deletions
@@ -0,0 +1,23 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Services\CustomerService;
class GadaianController extends Controller
{
public function __construct()
{
$this->middleware('auth');
$this->customerService = New CustomerService();
}
public function index(Request $request)
{
$noic = $request->noic;
$customer_info = $this->customerService->getCustomerInfo($noic);
$limit_pinjaman_semasa = $customer_info['limit_pinjaman'] - $customer_info['pinjaman_semasa'];
return view('gadaian.index',compact('customer_info','limit_pinjaman_semasa'));
}
}