@if ($current_loggedin_user->role != 0)
@include('backend.module-manager.permission-index')
@else
@endif
@if (count($form_media_fields_data) > 0)
@endif
@if (count($form_media_fields_data) > 0)
@endif
@endif
- {{ Str::plural($formdata->module_title) }}
- Serialize {{ Str::plural($formdata->module_title) }}
- Create {{ Str::singular($formdata->module_title) }}
- Bulk Import @if (count($form_media_fields_data) > 0)
- Media Files @endif
- Column Visibility
@if (count($visible_module_collection) > 0)
@php
$recid = '';
$field_array = [];
$image_array = [
'jpg',
'JPG',
'png',
'PNG',
'jpeg',
'JPEG',
'webp',
'svg',
'avif',
];
$file_array = ['pdf', 'doc', 'docx', 'xls', 'xlsx', 'html'];
$date_array = ['created_at', 'updated_at'];
$relation_array = [];
@endphp
@else
@endif
# | @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 }} | @endforeachAction | ||||
---|---|---|---|---|---|---|
{{ $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)
|
@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@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 |
Nothing found
@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
@else
@endif
# | @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 ($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)
|
@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
Nothing found
{{ Str::singular($formdata->module_title) }} Bulk Import
---------- Instructions ----------
Instuction
Instuction
{{ $visible_collection->field_name }} | @endif @endforeach
---|
- | @endif @endif @endforeach
{{ Str::singular($formdata->module_title) }} Media Files
@foreach ($form_media_fields_data as $key => $media_files)
@php
$field_name = Str::lower(
$media_files->field_name,
);
$replace_field_name = str_replace(
' ',
'_',
$field_name,
);
@endphp
0) style="border-top: solid 1px #dfdfdf;" @endif>
@endforeach
@php
$mediaPath =
'uploads/' .
$formdata->module_model .
'/' .
$replace_field_name .
'/';
$filesInFolder = File::allFiles(
$mediaPath,
);
$allMedia = [];
foreach ($filesInFolder as $path) {
$files = pathinfo($path);
$allMedia[] =
$files['basename'];
}
@endphp
@foreach ($allMedia as $key => $mediafile)
@php
$modelname =
$formdata->module_model;
$model_name =
'\\App\\Models\\' .
$modelname;
$getmedia_count = $model_name
::where(
$replace_field_name,
$mediafile,
)
->count();
$imagePath = public_path(
$mediaPath . $mediafile,
);
// Get the size of the image file
$fileSize = filesize(
$imagePath,
);
$getfilepath =
$baseurl .
'/' .
$mediaPath .
$mediafile;
@endphp
@endforeach
# | Field Name | Field Type | Visibility Status |
---|---|---|---|
{{ $key + 1 }} | {{ $collection->field_name }} | {{ $collection->type }} |
|
Nothing found |