@extends('admin.layouts.app') @section('content')

Edit {{ str_replace('_'," ", ucfirst($table) )}}

{{-- @include('admin.components.alert') --}} @php $record = $table.'_id'; @endphp
@csrf
{{--dd($fields)--}}
@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)")
@if($field->Type == "varchar(300)" && $records->$field_name == '') @else @endif
@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
@section('scripts') @endsection @endsection