@if($type==1) @Lang('admin.customers') * @Lang('admin.select') @foreach ($customers as $info ) @if($info->subaccount) {{$info->{'customer_name_'.app()->getLocale()} }} @endif @endforeach @elseif($type==2) @Lang('admin.suppliers') * @Lang('admin.select') @foreach ($suppliers as $info ) @if($info->subaccount) {{$info->{'supplier_name_' . app()->getLocale()} }} @endif @endforeach @endif