@php $account_id = null; if(!empty($accounts)){ $account_id = array_key_first($accounts); } @endphp