@extends('layouts.shell') @section('title', 'Settings') @php $byKey = collect($settings)->keyBy('key'); $creditOffers = \App\Services\CreditPackageService::normalizeList( old('settings.credit_packages', $byKey['credit_packages']['value'] ?? []), (int) ($byKey['credit_price_pkr']['value'] ?? 100), ); if ($creditOffers === []) { $creditOffers = \App\Services\CreditPackageService::defaultPackages(); } @endphp @section('content')