@if (in_array($value_view, $module_array))
@if (count($visible_module_collection) > 0)
@php
$recid = '';
$field_array = [];
$image_array = ['jpg', 'JPG', 'png', 'PNG', 'jpeg', 'JPEG', 'webp','svg',];
$file_array = ['pdf', 'doc', 'docx', 'xls', 'xlsx', 'html'];
$date_array = ['created_at', 'updated_at'];
$relation_array = [];
@endphp
# |
@foreach ($visible_module_collection as $key => $visible_collection)
@php
$field_name = $visible_collection->field_name;
$field_set = Str::lower($field_name);
$set_for_field = str_replace(' ', '_', $field_set);
array_push($field_array, $set_for_field);
if ($visible_collection->field_name == 'serialize_automatic') {
$visible_collection->field_name = 'Order Level';
}
if ($visible_collection->type == 'one_to_one_relations') {
array_push($relation_array, $set_for_field);
}
@endphp
{{ $visible_collection->field_name }} |
@endforeach
@if (in_array($value_edit, $module_array) or
in_array($value_delete, $module_array) or
in_array($value_seo_tags, $module_array))
Action |
@endif
@foreach ($all_records as $key => $record)
{{ $key + 1 }} |
@foreach ($table_fields as $field_key => $field)
@php
if ($field == 'id') {
$recid = $record[$field];
}
@endphp
@if (in_array($field, $field_array))
@php
$ext = pathinfo($record[$field], PATHINFO_EXTENSION);
@endphp
@if (in_array($ext, $image_array))
@php
$exploded_imgs = explode(
',',
$record[$field],
);
@endphp
@foreach($exploded_imgs as $img)
@endforeach
|
@else
@php
$exploded_files = explode(
',',
$record[$field],
);
@endphp
@foreach($exploded_files as $file)
View
File
@endforeach
|
@else
@if (in_array($field, $date_array))
@php
$formate_create_date = date(
'd M, Y | h:i A',
strtotime($record[$field]),
);
@endphp
{{ $formate_create_date }}
|
@else
@if (in_array($field, $relation_array))
@php
$getmodule_collection = \App\Models\ModuleCollection::where(
'form_id',
$formdata->id,
)
->where('type', 'one_to_one_relations')
->where('field_name', $field)
->first();
$getmodule_relation = \App\Models\ModuleRelation::where(
'form_id',
$formdata->id,
)
->where(
'field_id',
$getmodule_collection->field_count,
)
->first();
$get_relation_data = DB::table(
$getmodule_relation->related_table,
)
->where('id', $record[$field])
->pluck(
$getmodule_relation->related_table_field_to_display,
)
->first();
//echo $get_relation_data->title;
@endphp
{{ $get_relation_data }}
|
@else
{{ $record[$field] }} |
@endif
@endif
@endif
@endif
@endif
@endforeach
@if (in_array($value_edit, $module_array) or
in_array($value_delete, $module_array) or
in_array($value_seo_tags, $module_array))
@if (in_array($value_seo_tags, $module_array))
@if ($formdata->seo_enabled == 1)
@php
$seo_tags = \App\Models\SeoSetting::where(
'module_dataid',
$recid,
)
->where('module_slug', $moduletable)
->first();
@endphp
@if ($seo_tags)
@endif
@endif
@endif
@if (in_array($value_edit, $module_array))
@endif
@if (in_array($value_delete, $module_array))
@endif
|
@endif
@endforeach
@else
Nothing found
@endif
@endif
@if (in_array($value_serialize, $module_array))
@if (count($visible_module_collection) > 0)
@php
$recid = '';
$field_array = [];
$image_array = ['jpg', 'JPG', 'png', 'PNG', 'jpeg', 'JPEG', 'webp'];
$file_array = ['pdf', 'doc', 'docx', 'xls', 'xlsx', 'html'];
$date_array = ['created_at', 'updated_at'];
$relation_array = [];
@endphp
# |
@foreach ($visible_module_collection as $key => $visible_collection)
@php
$field_name = $visible_collection->field_name;
$field_set = Str::lower($field_name);
$set_for_field = str_replace(' ', '_', $field_set);
array_push($field_array, $set_for_field);
// if ($visible_collection->field_name == 'serialize_automatic') {
// $visible_collection->field_name = 'Order Level';
// }
if ($visible_collection->type == 'one_to_one_relations') {
array_push($relation_array, $set_for_field);
}
//echo $visible_collection->field_name;
@endphp
@if ($visible_collection->field_name != 'Order Level')
{{ $visible_collection->field_name }} |
@endif
@endforeach
@foreach ($serialize_all_records as $key => $record)
|
@foreach ($table_fields as $field_key => $field)
@php
//print_r($field_array);
if ($field == 'id') {
$recid = $record[$field];
}
@endphp
@if (in_array($field, $field_array))
@php
$ext = pathinfo($record[$field], PATHINFO_EXTENSION);
@endphp
@if (in_array($ext, $image_array))
@php
$exploded_imgs = explode(
',',
$record[$field],
);
@endphp
@foreach($exploded_imgs as $img)
@endforeach
|
@else
@if (in_array($ext, $file_array))
@php
$exploded_files = explode(
',',
$record[$field],
);
@endphp
@foreach($exploded_files as $file)
View
File
@endforeach
|
@else
@if (in_array($field, $date_array))
@php
$formate_create_date = date(
'd M, Y | h:i A',
strtotime($record[$field]),
);
@endphp
{{ $formate_create_date }}
|
@else
@if (in_array($field, $relation_array))
@php
$getmodule_collection = \App\Models\ModuleCollection::where(
'form_id',
$formdata->id,
)
->where('type', 'one_to_one_relations')
->where('field_name', $field)
->first();
$getmodule_relation = \App\Models\ModuleRelation::where(
'form_id',
$formdata->id,
)
->where(
'field_id',
$getmodule_collection->field_count,
)
->first();
$get_relation_data = DB::table(
$getmodule_relation->related_table,
)
->where('id', $record[$field])
->pluck(
$getmodule_relation->related_table_field_to_display,
)
->first();
//echo $get_relation_data->title;
@endphp
{{ $get_relation_data }}
|
@else
{{ $record[$field] }} |
@endif
@endif
@endif
@endif
@endif
@endforeach
@endforeach
@else
Nothing found
@endif
@endif
@if (in_array($value_create, $module_array))
@endif
@if (in_array($value_bulkdataimport, $module_array) or in_array($value_bulkmediaimport, $module_array))
@endif
@if (in_array($value_mediafiles, $module_array))
@if (count($form_media_fields_data) > 0)
@endif
@endif
@if (in_array($value_column_visibility, $module_array))
@endif