@php $data = ""; $admin_id = 0; if(!empty($emp_basic_info)) $admin_id = $emp_basic_info->admin_id; $where=[]; if(active_user()!=1) { $where=[['id','!=',1]]; } if(!empty($admin_id)){ $where = [['id','=',$admin_id]]; $admin_info = \App\Models\Admin\Admin::where($where)->with('roles','warehouses','costcenters') ->whereHas('warehouses',function($q){ $q->where('warehouse_id',current_warehouse()); })->first(); $data = $admin_info; } @endphp
@if(!empty($emp_basic_info))
@endif
@section('script') @endsection