wip
This commit is contained in:
@@ -8,6 +8,8 @@ use App\Nova\Actions\MakePaymentNovaVisaMaster;
|
||||
use App\Nova\Resource;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Laravel\Nova\Fields\ID;
|
||||
use Laravel\Nova\Fields\Boolean;
|
||||
use Laravel\Nova\Fields\Text;
|
||||
use Laravel\Nova\Http\Requests\NovaRequest;
|
||||
|
||||
/**
|
||||
@@ -15,8 +17,6 @@ use Laravel\Nova\Http\Requests\NovaRequest;
|
||||
*/
|
||||
class NovaVisaMasterPaymentOrderItem extends Resource
|
||||
{
|
||||
use VisaMasterAuth;
|
||||
|
||||
/**
|
||||
* The model the resource corresponds to.
|
||||
*
|
||||
@@ -94,6 +94,23 @@ class NovaVisaMasterPaymentOrderItem extends Resource
|
||||
{
|
||||
return [
|
||||
ID::make(),
|
||||
|
||||
Text::make('Amaly geçiren raýatyň F.A.A.', 'payer_name'),
|
||||
|
||||
Text::make('Amaly geçiren raýatyň kart belgisi (mask)', 'payer_card'),
|
||||
|
||||
Text::make('Töleg ýyly', fn () => $this->created_at->format('Y')),
|
||||
Text::make('Töleg aýy', fn () => $this->created_at->format('m')),
|
||||
|
||||
Text::make('Amalyň geçirilen wagty', fn () => $this->created_at('i:H, d.m.Y')),
|
||||
|
||||
Text::make('Amalyň möçberi', fn () => $this->usd_payment_amount),
|
||||
|
||||
Text::make('Amalyň manat möçberi', fn () => $this->tmt_payment_amount),
|
||||
|
||||
Text::make('Amalyň referensi', fn () => $this->payment_order_number),
|
||||
|
||||
Boolean::make('paid'),
|
||||
];
|
||||
}
|
||||
|
||||
@@ -102,10 +119,6 @@ class NovaVisaMasterPaymentOrderItem extends Resource
|
||||
*/
|
||||
public function actions(NovaRequest $request): array
|
||||
{
|
||||
return [
|
||||
MakePaymentNovaVisaMaster::make()
|
||||
->icon('credit-card')
|
||||
->sole(),
|
||||
];
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user