wip
This commit is contained in:
22
app/Http/Controllers/FetchCardHistoryController.php
Normal file
22
app/Http/Controllers/FetchCardHistoryController.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Http;
|
||||
|
||||
class FetchCardHistoryController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$response = Http::withBody('{
|
||||
"idSeria": "I-AS",
|
||||
"idNo": "314567",
|
||||
"clientType":"recipient",
|
||||
"cardMaskNumber":"993403******3258",
|
||||
"expDate": "07/49"
|
||||
}')->acceptJson()->post('http://10.3.158.102:9999/api/clientinfo');
|
||||
|
||||
return $response->body();
|
||||
}
|
||||
}
|
||||
@@ -3,6 +3,7 @@
|
||||
namespace App\Nova\Resources\Order\Loan;
|
||||
|
||||
use App\Modules\DateHelper\Repositories\DateHelperRepository;
|
||||
use App\Nova\Forms\NovaForm;
|
||||
use App\Nova\Resources\Branch\Branch;
|
||||
use App\Nova\Resources\System\Location\Province;
|
||||
use App\Nova\User;
|
||||
@@ -22,6 +23,7 @@ use Laravel\Nova\Fields\Number;
|
||||
use Laravel\Nova\Fields\Select;
|
||||
use Laravel\Nova\Fields\Text;
|
||||
use Laravel\Nova\Panel;
|
||||
use Nurmuhammet\NovaCustomHtml\NovaCustomHtml;
|
||||
use Nurmuhammet\NovaInputmask\NovaInputmask;
|
||||
|
||||
class LoanOrderMobileFieldsForDetail
|
||||
@@ -89,19 +91,11 @@ class LoanOrderMobileFieldsForDetail
|
||||
]),
|
||||
|
||||
new Panel(__('Card'), [
|
||||
Number::make(__('Card number'), 'card_number'),
|
||||
|
||||
Text::make(__('Name on card'), 'card_name'),
|
||||
|
||||
Select::make(__('Card').' '.__('Expiration month'), 'card_month')
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::monthsAsNumber()),
|
||||
|
||||
Select::make(__('Card').' '.__('Expiration year'), 'card_year')
|
||||
->displayUsingLabels()
|
||||
->searchable()
|
||||
->options(DateHelperRepository::yearsUntil()),
|
||||
NovaCustomHtml::make(__('Data'), 'card_name')
|
||||
->html(view('orders.loan.mobile.card-history', [
|
||||
'resource' => $resource
|
||||
])->render())
|
||||
->fillUsing(NovaForm::fillEmpty()),
|
||||
]),
|
||||
|
||||
new Panel(__('Contact data'), [
|
||||
|
||||
@@ -146,7 +146,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
|
||||
public function setupAssets(): void
|
||||
{
|
||||
Nova::style('additional', resource_path('css/vendor/nova/css/additional.css'));
|
||||
// Nova::script('additional', resource_path('js/vendor/nova/js/additional.js'));
|
||||
Nova::script('additional', resource_path('js/vendor/nova/js/additional.js'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user