Enhance ListRecords pages with tab functionality and default sorting

- Added getTabs method to ListCardPinOrders, ListLoanOrders, and ListLoanOrderMobiles pages to display order statuses for system users.
- Implemented default sorting by 'created_at' in LoanOrdersTable and LoanOrderMobilesTable for improved data organization.
- Updated ManageCards page to ensure proper type declaration for getTitle method.
This commit is contained in:
Mekan1206
2025-12-21 05:21:53 +05:00
parent 5a53b90272
commit 5e37bd1a76
29 changed files with 111 additions and 28 deletions

View File

@@ -2,4 +2,4 @@
return [
'card_order_created' => 'Kart sargydyňyz :order_id belgi bilen hasaba alyndy. Sargydy tassyklamak üçin operatorymyz habarlaşar.',
];
];

View File

@@ -47,4 +47,3 @@ class OnlinePaymentPolicy
return $user->can('ForceDelete:OnlinePayment');
}
}

View File

@@ -15,7 +15,8 @@ class SmsRepository
public static function sendSMS(string|int $phone, string|int $message): mixed
{
if (app()->environment('local')) {
info('Sending SMS to ' . $phone . ' with message: ' . $message);
info('Sending SMS to '.$phone.' with message: '.$message);
return true;
}

View File

@@ -37,7 +37,7 @@ use Spatie\MediaLibrary\InteractsWithMedia;
* @property \Illuminate\Support\Carbon|null $updated_at
* @property \Illuminate\Support\Carbon|null $deleted_at
*/
class VisaMasterPaymentOrder extends Model implements HasMedia, BelongsToBranch
class VisaMasterPaymentOrder extends Model implements BelongsToBranch, HasMedia
{
use InteractsWithMedia;
use SoftDeletes;

View File

@@ -47,4 +47,3 @@ class VisaMasterPaymentOrderItemPolicy
return $user->can('ForceDelete:VisaMasterPaymentOrderItem');
}
}

View File

@@ -47,4 +47,3 @@ class VisaMasterPaymentOrderPolicy
return $user->can('ForceDelete:VisaMasterPaymentOrder');
}
}

View File

@@ -47,4 +47,3 @@ class VisaMasterSettingsPolicy
return $user->can('ForceDelete:VisaMasterSettings');
}
}