@php if (isset($address->country_id) || old('country_id')) { $states = \App\Models\State::where('country_id', old('country_id', @$address->country_id))->get(); } else { $states = []; } @endphp @use('app\Helpers\Helpers')