@if($fields) @foreach($fields as $field)
@php $field_name = $field->Field @endphp
@if($field->Type == "varchar(150)")
@elseif($field->Type == "int(12)")
@php $tableName = getTableNameByFieldName($field->Field); $fieldName = $tableName; @endphp
@elseif($field->Type == "varchar(300)")
@elseif($field->Type == "varchar(500)")
@elseif($field->Type == "varchar(400)")
@elseif($field->Type == "text")
@elseif($field->Type == "tinyint(1)")
@else
@if($field->Field == $table.'_id' || $field->Field == 'deleted_at' || $field->Field == 'updated_at' || $field->Field == 'created_at')
@else
@endif
@endif
@endforeach @endif
@if(Auth::user()->role_id == 2)
@else
@endif