@use('App\Services\Date') @extends('companyuser::layouts.master') @section('title', (request('type') == 'new') ? __('accounting::assets.Add New Asset') : __('accounting::assets.Add Old Asset')) @section('extra-styles') @endsection @section('breadcrumb')
@endsection @section('content') @php $buyingAccountsForSelect = []; foreach($buyingAccounts as $buyingAccount){ foreach ($buyingAccount->accounts as $subBuyingAccount) { $buyingAccountsForSelect[$buyingAccount->name][$subBuyingAccount->id] = $subBuyingAccount->name; } } @endphp