diff --git a/resources/views/admin/type/akt-creator.blade.php b/resources/views/admin/type/akt-creator.blade.php deleted file mode 100644 index 0aeade8..0000000 --- a/resources/views/admin/type/akt-creator.blade.php +++ /dev/null @@ -1,115 +0,0 @@ -whereNotNull("kid") - ->where("type", "akt") - ->get(); - -if(getisset("select-document")) -{ - $selectDocument = db("document_templates")->where("type", "akt") - ->where("slug", get("select-document")) - - ->first(); -} -?> -
-
-
-

{{e2($c->title)}}

-
-
- -
-
-
- - @if(getisset("select-document")) - groupBy("iso_number")->select("iso_number")->groupBy("iso_number")->get()->pluck("iso_number")->toArray(); - $path = "storage/documents/{$selectDocument->kid}"; - $lineLists = glob("$path/*.*"); - ?> - - -
{{e2("Generate All")}}
- - - @endif -
-
- - -
- -
-
- -
- - - -
- -
- - diff --git a/resources/views/admin/type/approximate-values.blade.php b/resources/views/admin/type/approximate-values.blade.php deleted file mode 100644 index aad833a..0000000 --- a/resources/views/admin/type/approximate-values.blade.php +++ /dev/null @@ -1,45 +0,0 @@ - $value) { - firstOrUpdate([ - 'title' => $key, - 'html' => $value - ],"settings",[ - 'title' => $key - ]); - } - - } -?> -
-

{{e2($c->title)}}

-
- @csrf -
- - - {{col("col-md-4","General",0,['no-options' => true])}} - {{e2("Approximate Planned (WDI)")}}: - - - {{_col()}} - - {{col("col-md-4", $project, 0, ['no-options' => true])}} - {{e2("Approximate Planned (WDI)")}}: - - - {{_col()}} - - -
- -
- -
-
-
\ No newline at end of file diff --git a/resources/views/admin/type/as-build-editor.blade.php b/resources/views/admin/type/as-build-editor.blade.php deleted file mode 100644 index 01bbd83..0000000 --- a/resources/views/admin/type/as-build-editor.blade.php +++ /dev/null @@ -1,170 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
- - - - - - - - -
- -
-
- - - - - -
- - - -
- -
- \ No newline at end of file diff --git a/resources/views/admin/type/calculations.blade.php b/resources/views/admin/type/calculations.blade.php deleted file mode 100644 index 9949d10..0000000 --- a/resources/views/admin/type/calculations.blade.php +++ /dev/null @@ -1,46 +0,0 @@ - 'setting', -]; -?> - -
-
- -
-
- - @include("admin.type.settings." . get("t")) - -
-
-
- -

{{e2("Settings System")}}

-

{{e2("Please select a setting tab from the top tab and set it")}}

- -
-
-
- - -
- -
-
-
\ No newline at end of file diff --git a/resources/views/admin/type/calibration-logs.blade.php b/resources/views/admin/type/calibration-logs.blade.php deleted file mode 100644 index b76dcfb..0000000 --- a/resources/views/admin/type/calibration-logs.blade.php +++ /dev/null @@ -1,318 +0,0 @@ -orderBy("item_no", "ASC") - ->paginate(setting('row_count')); -$tableName = "calibration_logs"; - -$relationDatas = [ - 'certification_document' => [ - 'type' => 'link-search', - 'html' => '', - ], - 'user_guide' => [ - 'type' => 'link-search', - 'html' => '', - ], - 'calibration_certificate' => [ - 'type' => 'link-search', - 'html' => '', - ], - 'discipline' => [ - 'values' => db("disciplines")->get()->pluck("discipline_title")->toArray(), - 'type' => 'manuel-select' - ], - 'instrument' => [ - 'values' => [ - 'Civil Works Test Equipment', - 'Piping/Mechanical Test Equipment', - 'Instrument Test Equipment', - 'Painting and Coating Test Equipment', - 'Electrical Test Equipment', - 'Welding Equipment', - ], - 'type' => 'manuel-select', - ], - 'place_of_calibration_verification' => [ - 'values' => [ - 'Laboratory', - 'In house verification', - 'In house calibration', - ], - 'type' => 'manuel-select', - ], - 'status' => [ - 'values' => [ - 'In use', - 'Out Of service', - 'Repair', - 'Calibration-Verification', - ], - 'type' => 'manuel-select', - ], - 'quantity' => [ - 'values' => ['1'], - 'type' => 'manuel-select', - ], -]; - -$blockGroup = [ - 'General Information' => [ - 'certification_document', - 'user_guide', - 'discipline', - 'instrument', - 'item_no', - 'equipment_name', - 'manufacturer', - 'model_no', - 'serial_no', - 'quantity', - ], - 'Calibration Info' => [ - 'passport_certificate_no', - 'place_of_calibration_verification', - 'calibrated_by', - 'calibration_frequency', - 'calibration_certificate', - 'calibration_certificate_no', - 'calibration_date', - 'calibration_due_date', - 'deviation_ratio', - 'status', - ], - 'Documents & Notes' => [ - 'remarks', - 'comments', - 'source_module', - 'source_id', - ], -]; - -// QA document folder for calibration certificates -$firstUploadFolder = '004_QA/0025_Calibration/'; -$firstUploadTitle = 'Upload Calibration Certificate'; -$uploadPermissionKey = 'calibration_log_upload_permission'; - -// Sync button for NAKS Welding Equipments -$topButtons = []; - -// Permission Check for NAKS Sync -$allowedSyncLevels = j(setting('calibration_naks_sync_permission')); -$userLevel = u()->level ?? null; -$hasSyncPermission = false; - -if (empty($allowedSyncLevels) || !is_array($allowedSyncLevels)) { - // If no permission set, maybe default to allow or deny. - // Usually if not set, no restriction or restricted to admin. - // Let's assume strict: if not set, no one (or maybe just admin) can see. - // But user asked to "Choose authorized personnel", implies if nothing chosen, maybe no one. - // Let's allow Admin (1) by default or if array is empty? - // Safest is: if array is defined, check it. If not defined/empty, maybe hide? - // Let's check if the user level is in the array. - $hasSyncPermission = false; -} else { - if (in_array($userLevel, $allowedSyncLevels)) { - $hasSyncPermission = true; - } -} - -// Ensure Admin always has access (optional but good practice, though user settings might override) -// If you want strict adherence to the setting, simply adhere to $hasSyncPermission as calculated. -// But usually system admins (level 1) should have access. -// Let's stick to the setting as requested. - -if ($hasSyncPermission) { - $topButtons[] = [ - 'href' => '?sync-from-naks', - 'html' => ' ' . __("Sync from NAKS Equipments") - ]; -} - -?> - - - - -
-
-
- count() == 0) { - bilgi("No NAKS welding equipment records found to sync.", "warning"); - } else { - foreach($equipments as $equipment) { - try { - $data = $equipment->toArray(); - $sourceId = $data['id'] ?? null; - - // Find or create calibration log - $log = CalibrationLog::firstOrNew([ - 'source_module' => 'naks_welding_equipment', - 'source_id' => $sourceId, - ]); - - $log->instrument = 'Welding Equipment'; - $log->description = $data['type_of_welding_machine'] ?? null; - $log->equipment_name = $data['brand'] ?? null; - $log->manufacturer = $data['producer'] ?? null; - $log->serial_no = $data['manufacturer_code'] ?? null; - $log->passport_certificate_no = $data['attestation'] ?? null; - $log->quantity = 1; - - if (!empty($data['date_of_issue'])) { - $log->calibration_date = $data['date_of_issue']; - } - if (!empty($data['valid_until'])) { - $log->calibration_due_date = $data['valid_until']; - } - - // Status calculation - if (!empty($log->calibration_due_date)) { - $today = \Illuminate\Support\Carbon::today(); - $dueDate = \Illuminate\Support\Carbon::parse($log->calibration_due_date)->startOfDay(); - if ($dueDate->lt($today)) { - $log->status = 'Out Of service'; - } elseif ($dueDate->lte($today->copy()->addDays(20))) { - $log->status = 'Calibration-Verification'; - } else { - $log->status = 'In use'; - } - } - - $log->save(); - $count++; - - } catch(\Exception $innerE) { - $errors[] = "ID {$equipment->id}: " . $innerE->getMessage(); - } - } - - $afterCount = CalibrationLog::count(); - $newRecords = $afterCount - $beforeCount; - - if(count($errors) > 0) { - bilgi("Errors: " . implode(" | ", array_slice($errors, 0, 3)), "danger"); - } - - bilgi(":count record(s) synced from NAKS. Total: :before → :after (:new new)", - "success", - ['count' => $count, 'before' => $beforeCount, 'after' => $afterCount, 'new' => $newRecords] - ); - } - } catch(\Exception $e) { - bilgi("Sync Error: " . $e->getMessage(), "danger"); - } - - // Remove query param to prevent re-sync on refresh - echo ""; - } - ?> -
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
diff --git a/resources/views/admin/type/color-system.blade.php b/resources/views/admin/type/color-system.blade.php deleted file mode 100644 index abe8885..0000000 --- a/resources/views/admin/type/color-system.blade.php +++ /dev/null @@ -1,58 +0,0 @@ -paginate(setting('row_count')); -$tableName = "color_systems"; - -$ralCodes = j(setting("ral-codes")); -$ralCodeValues =array_column($ralCodes, 'ral_code'); -//$tableType = "datagrid"; - -$relationDatas = [ - 'ral_1' => [ - 'values' => $ralCodeValues, - 'type' => 'manuel-select' - ], - 'ral_2' => [ - 'values' => $ralCodeValues, - 'type' => 'manuel-select' - ], - 'ral_3' => [ - 'values' => $ralCodeValues, - 'type' => 'manuel-select' - ], -]; -$blockGroup = [ - 'Engineering' => [ - 'unit', - 'fluid_code', - 'fluid_code_description', - 'working_temperature', - 'design_temperature' - ], - 'Ral' => [ - 'ral_1', - 'ral_2', - 'ral_3' - ] -]; - - -?> - - -
-
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/construction-paint-log.blade.php b/resources/views/admin/type/construction-paint-log.blade.php deleted file mode 100644 index f84f9e2..0000000 --- a/resources/views/admin/type/construction-paint-log.blade.php +++ /dev/null @@ -1,749 +0,0 @@ - - document.addEventListener("DOMContentLoaded", function() { - DevExpress.ui.notify("{{ e2("Construction Paint Log document template is not found in the system. Please contact the administrator.") }}", "error", 5000); - }); - '; - $documentJson = []; - $documentPath = ''; -} else { - $documentJson = j($documentInfo->json); - $documentPath = $documentInfo->kid; -} - -$dataGridOptions = " - selection: { - mode: 'multiple', - showCheckBoxesMode: 'always' - }, - onSelectionChanged: function(e) { - var selectedData = e.component.getSelectedRowsData(); - window.selectedRows = selectedData; - console.log('Selection changed. Selected rows:', window.selectedRows); - }, - customizeColumns: function(columns) { - var fittingsColumns = ['elbow_pcs', 'elbow_45_pcs', 'elbow_m2', 'tee_pcs', 'tee_m2', 'reductions_pcs', 'reductions_m2', 'vent_pcs', 'vent_m2', 'cap_pcs', 'cap_m2', 'flange_pcs', 'flange_m2']; - columns.forEach(function(col) { - // Rename vent columns to Nippel-Olet - if (col.dataField === 'vent_pcs') { - col.caption = 'nippel-olet_pcs'; - } - if (col.dataField === 'vent_m2') { - col.caption = 'nippel-olet_m2'; - } - // Hide Fittings band header - if (col.caption === 'Fittings') { - col.visible = true; - col.allowExporting = true; - col.allowSorting = false; - col.headerCellTemplate = function(headerCell, headerInfo) { - var headerEl = $(headerCell); - headerEl.empty(); - - if (typeof window.fittingsVisible === 'undefined') { - window.fittingsVisible = false; - } - - var wrapEl = $('
') - .addClass('fittings-toggle-header') - .css({ - display: 'flex', - alignItems: 'center', - justifyContent: 'space-between', - cursor: 'pointer', - userSelect: 'none', - gap: '8px' - }); - - var captionText = (headerInfo && headerInfo.column && headerInfo.column.caption) ? headerInfo.column.caption : 'Fittings'; - var textEl = $('').text(captionText); - var iconEl = $('').addClass(window.fittingsVisible ? 'fa fa-chevron-up' : 'fa fa-chevron-down'); - - wrapEl.append(textEl); - wrapEl.append(iconEl); - - wrapEl.on('click', function(ev) { - ev.preventDefault(); - ev.stopPropagation(); - - if (window.toggleFittingsColumns) { - window.toggleFittingsColumns(headerInfo.component); - } - }); - - headerEl.append(wrapEl); - }; - } - // Hide Fittings columns - if (fittingsColumns.includes(col.dataField)) { - col.visible = false; - col.allowExporting = true; - } - }); - }, -"; - -$paintSystem = db("paint_systems")->get()->map(function($item) { - return [ - 'paint_cycle' => $item->paint_cycle, - 'consumption_paint_kg_1' => $item->consumption_paint_kg_1, - 'consumption_paint_kg_2' => $item->consumption_paint_kg_2, - 'consumption_paint_kg_3' => $item->consumption_paint_kg_3 - ]; -})->keyBy('paint_cycle')->toArray(); - -//$tableType = "datagrid"; - -$paintMatrix = db("paint_matrices")->get(); -$brends = []; - -foreach($paintMatrix AS $pm) { - - if(!is_null($pm->brend_name_1)) - $brends[] = $pm->brend_name_1; - - if(!is_null($pm->brend_name_2)) - $brends[] = $pm->brend_name_2; - - if(!is_null($pm->brend_name_3)) - $brends[] = $pm->brend_name_3; -} - -$brends = array_unique($brends); -$relationDatas = [ - - 'brend_name_1' => [ - 'values' => $brends, - 'type' => 'manuel-select' - ], - 'brend_name_2' => [ - 'values' => $brends, - 'type' => 'manuel-select' - ], - 'brend_name_3' => [ - 'values' => $brends, - 'type' => 'manuel-select' - ], - 'paint_subcontructer' => [ - 'values' => db("subcontractors")->get()->pluck("company_name_en")->toArray(), - 'type' => 'manuel-select' - ], -]; - - - -$blockGroup = [ - 'Report Information' => [ - 'report_no', - 'construction_report_no', - 'test_package', - 'rev', - 'sheet', - ], - - 'Project Information' => [ - 'engineering', - 'area', - 'unit', - 'paint_subcontructer', - ], - - 'Line Details' => [ - 'line', - 'iso_drawings', - 'spool', - 'spool_status', - 'fluid_code', - 'fluid_code_description', - 'isolation_info', - ], - - 'Painting System' => [ - 'painting_system_type_1', - ], - - 'First Layer Details' => [ - 'brend_name_1', - 'ral_1', - 'color_1', - 'thickness_1', - ], - - 'Second Layer Details' => [ - 'brend_name_2', - 'ral_2', - 'color_2', - 'thickness_2', - ], - - 'Third Layer Details' => [ - 'brend_name_3', - 'ral_3', - 'color_3', - 'thickness_3', - ], - - 'Dimensions' => [ - 'dn_1', - 'dn_2', - 'line_pipe_mm_1', - 'line_pipe_mm_2', - 'cutting_mm', - 'total_line_mm', - ], - - 'Fittings' => [ - 'elbow_pcs', - 'elbow_45_pcs', - 'elbow_m2', - 'tee_pcs', - 'tee_m2', - 'reductions_pcs', - 'reductions_m2', - 'vent_pcs', - 'vent_m2', - 'cap_pcs', - 'cap_m2', - 'flange_pcs', - 'flange_m2', - ], - - 'Surface Spool(m2)' => [ - 'fittings_m2', - 'pipe_m2', - 'total_m2', - ], - - 'Consumption Paint(kg)' => [ - 'first_layer', - 'second_layer', - 'third_layer', - 'total_layer', - ], - - 'Blasting Process' => [ - 'blasting_date', - 'blasting_finish_date', - 'blasting_rfi_no', - ], - - 'First Layer Application' => [ - 'painting_date_1', - 'painting_finish_date_1', - 'rfi_date_1', - 'rfi_no_1', - ], - - 'Second Layer Application' => [ - 'painting_date_2', - 'painting_finish_date_2', - 'rfi_date_2', - 'rfi_no_2', - ], - - 'Third Layer Application' => [ - 'painting_date_3', - 'painting_finish_date_3', - 'rfi_date_3', - 'rfi_no_3', - ], -]; -?> - - - -
-
- @include("components.blocks.module-block") -
-
- - - - - - - -@include('components.modals.surface-area-modal') - diff --git a/resources/views/admin/type/cut-list.blade.php b/resources/views/admin/type/cut-list.blade.php deleted file mode 100644 index 1c575c2..0000000 --- a/resources/views/admin/type/cut-list.blade.php +++ /dev/null @@ -1,128 +0,0 @@ -paginate(setting('row_count')); -$tableName = "cut_lists"; - -//$tableType = "datagrid"; -$relationDatas = [ - - 'beveeling_1' => [ - 'datas' => db("beveelings")->get(), - 'pattern' => '{beveeling_title}', - 'type' => 'select-dropdown' - ], - 'beveeling_2' => [ - 'datas' => db("beveelings")->get(), - 'pattern' => '{beveeling_title}', - 'type' => 'select-dropdown' - ], -]; - -$blockGroup = [ - 'Drawing and Identification Information' => [ - 'drawing_no', - 'work_order_no', - 'zone', - 'subcontructer', - 'line_no', - 'area', - 'sheet', - 'rev', - ], - 'Material Information' => [ - 'material', - 'id_number', - 'heat_number', - 'manufacturing_pipe_no', - ], - 'Part Properties' => [ - 'pose_no', - 'piece_no', - 'inch', - 'diamm', - 'thicknessmm', - 'beveeling_1', - 'beveeling_2', - 'cut_pipe_length', - 'mesasured_length', - ], - 'Process Information' => [ - 'cutting_date', - 'formen', - 'inspector', - 'release_date', - 'remarks', - ] -]; - - -?> - - - -
-
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/dashboard.blade.php b/resources/views/admin/type/dashboard.blade.php deleted file mode 100644 index 03de6a7..0000000 --- a/resources/views/admin/type/dashboard.blade.php +++ /dev/null @@ -1,76 +0,0 @@ - - -@include('admin.type.partials.dashboard.styles') - -
- - -
-
- -
Loading dashboard data...
-
-
- - - - - - -
- -@include('admin.type.partials.dashboard.scripts') \ No newline at end of file diff --git a/resources/views/admin/type/deleted-joints.blade.php b/resources/views/admin/type/deleted-joints.blade.php deleted file mode 100644 index e3ace95..0000000 --- a/resources/views/admin/type/deleted-joints.blade.php +++ /dev/null @@ -1,137 +0,0 @@ -paginate(setting('row_count')); -$tableName = "deleted_joints"; - - -$blockGroup = [ - 'Info' => [ - 'comment', - 'deleted_date' - ], - 'Information About the PIPE' => [ - 'general_contractor','contractor', - // 'ste_subcontractor', - 'design_area','line_specification','line_number','main_material','main_nps','fluid_code','service_category','fluid_group','piping_class','design_temperature_s','design_pressure_mpa','operating_temperature_s','operating_pressure_mpa','painting_cycle','external_finish_type' - - ], - 'Iso Information' => [ - 'iso_number','quantity_of_iso','iso_rev','spool_number' - ], - 'Information about the welding' => [ - 'type_of_joint','no_of_the_joint_as_per_as_built_survey','type_of_welds','welding_date','wps_no','wps_approval_date','welding_method','welding_materials_1','welding_materials_1_lot_no','welding_materials_1_certificate_no','welding_materials_2','welding_materials_2_lot_no','welding_materials_2_certificate_no','welding_materials_3','welding_materials_3_lot_no','welding_materials_3_certificate_no','welder_1','welder_2', - 'certificate_no_1','wpq_report_1', - 'certificate_no_2','wpq_report_2', - ], - 'Information about the welding elements' => [ - 'element_code_1', 'pose_no_1', 'member_no_1', - 'element_code_2', 'pose_no_2', 'member_no_2', - 'material_no_1','ru_material_group_1','certificate_number_of_1','heat_number_1','nps_1','thickness_by_asme_1','outside_diameter_1','wall_thickness_1','material_no_2','ru_material_group_2','certificate_number_of_2','heat_number_2','nps_2','thickness_by_asme_1','outside_diameter_2','wall_thickness_2', - ], - 'VT' => [ - 'ndt_percent', - // 'vt_request_no', - 'vt_report', - 'vt_request_date', - 'test_laboratory_vt', - 'vt_result' - ], - 'RT' => [ - 'rt_scope', - 'rt_request_no', - 'rt_request_date', - 'rt_report', - 'rt_test_date', - 'test_laboratory_rt', - 'rt_result' - ], - 'UT' => [ - 'ut_scope', - 'ut_request_no', - 'ut_type', - 'ut_request_date', - 'ut_report', - 'ut_test_date', - 'test_laboratory_ut', - 'ut_result' - ], - 'PT' => [ - 'pt_scope','pt_request_no', - 'pt_request_date', - 'pt_report','pt_test_date','test_laboratory_pt','pt_result' - ], - 'MT' => [ - 'mt_scope','mt_request_no','mt_report','mt_test_date','test_laboratory_mt','mt_result' - ], - 'PMI' => [ - 'pmi_scope','pmi_request_no', - 'pmi_request_date', - 'no_of_testing_report','pmi_test_date','test_laboratory_pmi','pmi_result','pwht','pwht_date' - ], - 'PWHT' => [ - 'pwht', - 'pwht_date', - 'no_of_pwht_report', - 'diagram_number_pwht', - 'test_laboratory_pwht' - ], - 'HT' => [ - 'ht_scope', - 'ht_request_no', - 'no_of_ht_hardnes_test', - 'ht_request_date', - 'test_laboratory_ht', - 'ht_result' - ], - 'Ferrite Check' => [ - 'ferrite_scope', - 'ferrite_request_no', - 'ferrite_request_date', - 'ferrite_report', - 'ferrite_test_date', - 'test_laboratory_ferrite', - 'ferrite_result' - ], - 'PIPE testing' => [ - 'test_package_no', - 'test_pressure', - 'type_of_test', - 'date_test', - 'test_result' - ], - 'Status' => [ - 'real_welder_1','real_welder_2','ste_subcontractor','remarks' - ] -]; -$columnRedesign = []; -$columnRedesign['diameter']['class'] = "col-md-6"; -$columnRedesign['thickness']['class'] = "col-md-6"; -$columnRedesign['pwht_operator_name_surname']['class'] = "col-md-6"; -$columnRedesign['pwht_operator_id']['class'] = "col-md-6"; - -$columnsArray = ['vt', 'rt', 'ut', 'mt', 'pt', 'pmi', 'pwht', 'ht', 'ferrite-check', 'pipe-testing']; -foreach($columnsArray AS $columnKey) { - $columnRedesign[$columnKey]['class'] = "col-md-6"; - $columnRedesign[$columnKey]['border'] = true; - $columnRedesign[$columnKey]['color'] = 15; -} - - - -?> - -@include("admin.type.weldmap.datagrid-script") -
-
- @include("components.blocks.module-block") -
-
- diff --git a/resources/views/admin/type/document-procedure.blade.php b/resources/views/admin/type/document-procedure.blade.php deleted file mode 100644 index 46b27f0..0000000 --- a/resources/views/admin/type/document-procedure.blade.php +++ /dev/null @@ -1,115 +0,0 @@ -paginate(setting('row_count')); -$tableName = "document_procedures"; - -$noRemoteOperations = true; - -$requiredFields = []; -$relationDatas = [ - 'download' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'publisher' => [ - 'values' => j(setting("publisher")), - 'type' => 'manuel-select' - ], - 'language' => [ - 'values' => [ - 'TR', - 'EN', - 'RU', - ], - //'default' => 'RU', - 'type' => 'manuel-select' - ], - 'scope' => [ - 'values' => [ - 'CENTER', - 'INTERNAL', - ], - 'type' => 'manuel-select' - ], - 'status' => [ - 'values' => [ - 'PREPAIRING', - 'SIGNED', - 'COMMENTED', - ], - 'default' => 'PREPAIRING', - 'type' => 'manuel-select' - ], - 'document_type' => [ - 'values' => j(setting("document_procedure_type")), - 'type' => 'manuel-select' - ], -]; - - -$blockGroup = [ - 'General Information' => [ - 'download', - 'scope', - 'publisher', - 'publish_date', - 'document_no', - 'disipline', - 'description', - 'language', - 'prepared_by', - 'document_type', - 'status', - ], - 'Revision Info' => [ - 'revision_info', - 'revision_date', - 'controller', - 'control_given_date', - 'remarks', - ] - -]; - -$dataGridOptions = ' - grouping: { - contextMenuEnabled: true - }, - groupPanel: { - visible: true - }, - /* - onInitialized : function(e) { - $("#dataGrid").dxDataGrid("columnOption", "document_no", "groupIndex", 1); - }, - */ -'; -$path = "004_QA/0018_Procedure"; -/* -$prependColumns = [ - 'Download' => [ - 'type' => 'link-search', - 'path' => $path . '/', - 'pattern' => "{document_no}*.pdf", - 'html' => '' - ] -]; -*/ -$firstUploadFolder = $path; -$firstUploadTitle = "Upload Document Procedures"; - -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/document-revision.blade.php b/resources/views/admin/type/document-revision.blade.php deleted file mode 100644 index 2bbd0a3..0000000 --- a/resources/views/admin/type/document-revision.blade.php +++ /dev/null @@ -1,242 +0,0 @@ -paginate(setting('row_count')); -$tableName = "document_revisions"; - -// Güncel revizyonların ID'lerini hesapla (her drawing_no için en yüksek revision_no'ya sahip kayıtlar) -$currentRevisionIds = db("document_revisions as dr1") - ->select('dr1.id') - ->whereNotNull('dr1.drawing_no') - ->where('dr1.drawing_no', '<>', '') - ->whereRaw('dr1.revision_no = ( - SELECT MAX(dr2.revision_no) - FROM document_revisions dr2 - WHERE dr2.drawing_no = dr1.drawing_no - )') - ->pluck('id') - ->toArray(); -// DataGrid için onRowPrepared callback'i -// DataGrid için onRowPrepared callback'i -$dataGridOptions = ' - onRowPrepared: function(e) { - if (e.rowType === "data" && e.data) { - var currentRevisionIds = ' . json_encode($currentRevisionIds) . '; - // IDleri number tipine cevirerek karsilastir (js strict equality) - var rowId = Number(e.data.id); - - if (currentRevisionIds.includes(rowId)) { - $(e.rowElement).addClass("current-revision-row"); - $(e.rowElement).removeClass("old-revision-row"); - } else { - $(e.rowElement).addClass("old-revision-row"); - $(e.rowElement).removeClass("current-revision-row"); - } - } - - // Total footer - sticky Total cell - if (e.rowType === "totalFooter") { - $(e.rowElement).find("td").each(function () { - if ($(this).text().indexOf("Total") !== -1) { - $(this).css({ - "position": "sticky", - "left": "0", - "z-index": "11", - "background-color": "#e9ecef", - }); - } - }); - } - }, -'; - -//$tableType = "datagrid"; -/* -$prependColumns = [ - 'Engineering' => [ - 'type' => 'link-search', - 'path' => '001_Drawings/001_Engineering/', - 'pattern' => "{drawing_no}*{revision_no}*.pdf", - 'html' => '' - ], - - 'ISO' => [ - 'type' => 'link-search', - 'path' => '001_Drawings/002_Iso/', - 'pattern' => "*{drawing_no}*{revision_no}*.pdf", - 'html' => '' - ], -]; -*/ - -$relationDatas = [ - 'pdf_engineering' => [ - 'type' => 'link-search', - 'html' => '' - ], - - 'pdf_spool_iso' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'pdf_as_build' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'discipline' => [ - 'type' => 'manuel-select', - 'values' => Discipline::pluck('discipline_title', 'discipline_title')->toArray() - ], -]; - -$blockGroup = [ - 'Attachment' => [ - 'pdf_engineering', - 'pdf_spool_iso', - 'pdf_as_build', - 'working_documentation', - 'axonometry', - ], - 'General Information' => [ - 'transmittal_document', - 'discipline', - 'publish_date', - 'document_name', - 'zone', - 'subcontructer', - 'area', - 'line_number', - 'drawing_no', - 'revision_no', - 'remarks', - ] -]; -/* -$topButtons = [ - 0 => [ - 'href' => '#', - 'html' => 'Upload PDF', - 'class' => 'upload-pdf' - ] -]; -*/ - -?> - - - - -
-
- @include("admin.type.document.upload") - -
- {{bilgi("Upload has been success!")}} -
- - - - - @include("components.blocks.module-block") -
-
- -@include("admin.type.weldmap.upload-modal") - - diff --git a/resources/views/admin/type/dye-penetrant-test.blade.php b/resources/views/admin/type/dye-penetrant-test.blade.php deleted file mode 100644 index 92fd75e..0000000 --- a/resources/views/admin/type/dye-penetrant-test.blade.php +++ /dev/null @@ -1,26 +0,0 @@ -paginate(setting('row_count')); -$tableName = "dye_penetrant_tests"; - -$tableType = "datagrid"; - - -?> - - -
-
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/employees-old.blade.php b/resources/views/admin/type/employees-old.blade.php deleted file mode 100644 index 1c8d3c1..0000000 --- a/resources/views/admin/type/employees-old.blade.php +++ /dev/null @@ -1,97 +0,0 @@ -get(); - foreach($welders AS $welder) { - db("users")->updateOrInsert([ - 'registration_no' => $welder->welder_id, - ], [ - 'level' => "Welder", - 'name' => $welder->welder_name_en, - 'name_ru' => $welder->welder_name_ru, - 'registration_no' => $welder->welder_id, - 'subcontructer' => $welder->company, - ]); - - } -} -$jobDesc = job_descriptions(); - -$listDatas = User::orderBy("id","DESC") - ->whereIn("level", ['Welder']) - ->orWhereNull("level") - ->paginate(setting('row_count')); - -$tableName = "users"; - -$excepts = [ - 'json', - 'slug', - 'pic', - 'email_verified_at', - 'password', - 'permissions', - 'phone', - //'level', - 'alias', - 'email', - 'remember_token', - 'recover', - 'last_seen', - 'branslar', - 'ust', - 'uid', - 'note', -]; - -$relationDatas = [ - - - 'gender' => [ - 'values' => [ - 'Male', - 'Female', - ], - 'type' => 'manuel-select' - ], - 'status' => [ - 'values' => [ - 'Active', - 'Transfer to ...', - 'Black list', - 'Exit', - ], - 'type' => 'manuel-select' - ], - 'subcontructer' => [ - 'datas' => db("subcontractors")->get(), - 'pattern' => '{company_name_en}', - 'type' => 'select-dropdown' - ], - 'level' => [ - 'datas' => db("job_descriptions")->get(), - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ], -]; - -?> -
-
- {{col("col-12")}} - {{e2("Sync From Welder")}} - {{_col()}} - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/employees.blade.php b/resources/views/admin/type/employees.blade.php deleted file mode 100644 index 50b45d7..0000000 --- a/resources/views/admin/type/employees.blade.php +++ /dev/null @@ -1,226 +0,0 @@ - -
-
-
-

{{e2($c->title)}}

-
-
- - selectRaw() - join("naks_welders", "welder_tests.naks_id", "naks_welders.welder_id") - ->whereNotNull("naks_id") - ->groupBy("naks_id") - ->get(); - $k = 0; - foreach($welders AS $welder) { - db("users")->updateOrInsert([ - 'registration_no' => $welder->welder_id, - ], [ - 'level' => "Welder", - 'name' => $welder->welder_name_en, - 'name_ru' => $welder->welder_name_ru, - 'registration_no' => $welder->welder_id, - 'subcontructer' => $welder->company, - ]); - $k++; - - } - bilgi(":count Row added or updated", "success", ['count' =>$k]); -} ?> -
- - - - @include("admin.users.detail") - -
- {{e2("Sync From Welder")}} -
- -
- - - -
- -
-
\ No newline at end of file diff --git a/resources/views/admin/type/feedback-reports.blade.php b/resources/views/admin/type/feedback-reports.blade.php deleted file mode 100644 index 6f6bbaf..0000000 --- a/resources/views/admin/type/feedback-reports.blade.php +++ /dev/null @@ -1,355 +0,0 @@ -@extends("admin.master") - -@section("title", "Feedback Reports") - -@section("content") - -@php - use App\Models\FeedbackReport; - use Illuminate\Support\Facades\DB; - - $statusFilter = request("status", "all"); - $userFilter = request("username", "all"); - - $query = FeedbackReport::orderBy("id","DESC"); - - if ($statusFilter !== "all") { - $query->where("status", $statusFilter); - } - - if ($userFilter !== "all") { - $query->where("username", $userFilter); - } - - $listDatas = $query->paginate(15); - - $counts = [ - "all" => FeedbackReport::whereNotNull("username")->count(), - "submitted" => FeedbackReport::where("status","submitted")->whereNotNull("username")->count(), - "reviewed" => FeedbackReport::where("status","reviewed")->whereNotNull("username")->count(), - "closed" => FeedbackReport::where("status","closed")->whereNotNull("username")->count(), - ]; - - // Get users with feedback count - $users = FeedbackReport::select('username', DB::raw('count(*) as total')) - ->groupBy('username') - ->orderBy('total', 'DESC') - ->get(); -@endphp - -
- -
-
- - -
-
-

User Filter

-
-
- -
-
-
- -
- -
- @csrf - -
-

Feedback List

- -
- -
-
- - - - - - - - - - - - @foreach($listDatas as $item) - - - - - - - - - - - @endforeach - -
Feedback DetailsStatusActions
-
- -
-
-
{{ $item->username ?? "Unknown User" }}
-
- {{ Str::limit($item->description, 100) }} - - - view - -
-
- - - @if($item->screenshot_path) -
- - - - - -
- @else - No Attach - @endif -
- -
- {{ $listDatas->appends(['status' => $statusFilter, 'username' => $userFilter])->links("vendor.pagination.bootstrap-4") }} -
- -
-
- -
- -
-
-
- - - - - - - - -@endsection - -@section("scripts") - -@endsection diff --git a/resources/views/admin/type/ferrit-log.blade.php b/resources/views/admin/type/ferrit-log.blade.php deleted file mode 100644 index a806ca5..0000000 --- a/resources/views/admin/type/ferrit-log.blade.php +++ /dev/null @@ -1,141 +0,0 @@ -paginate(setting('row_count')); -$tableName = "ferrits"; - -$tableType = "datagrid"; - -$relationDatas = [ - 'report_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'ferrite_result' => [ - 'datas' => [], - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ], -]; -$blockGroup = [ - 'Info' => [ - 'report_file', - 'contractor', - ], - 'Invoice' => [ - 'invoice_number', - 'invoice_date', - ], - 'Laboratory' => [ - 'test_laboratory_ferrite', - - ], - 'Project' => [ - 'project', - - ], - 'Design' => [ - 'design_area', - 'line_specification', - 'line_number', - 'fluid_code', - 'service_category', - 'fluid_group', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - - ], - 'ISO Info' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_welds', - ], - 'Welding Info' => [ - 'welding_date', - 'wps_no', - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welder_1', - 'welder_2', - ], - 'Base Element Info' => [ - 'certificate_no_1', - 'wpq_report_1', - 'certificate_no_2', - 'wpq_report_2', - 'member_no_1', - 'material_no_1', - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'element_code_1', - 'member_no_2', - 'material_no_2', - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'element_code_2', - ], - 'Ferrite Info' => [ - 'ferrite_scope', - 'ferrite_request_date', - 'ferrite_request_no', - 'ferrite_report', - 'ferrite_test_date', - 'ferrite_result', - 'control_standart', - 'tester_name', - 'real_welder_1', - 'real_welder_2', - - 'record_1_fn', - 'record_2_fn', - 'record_3_fn', - ], - - - - -]; - - -$firstUploadFolder = '004_QA/0006_Ferrite/'; -$firstUploadTitle = 'Upload PDF'; -$uploadPermissionKey = 'ferrite_log_upload_permission'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/hand-over-status.blade.php b/resources/views/admin/type/hand-over-status.blade.php deleted file mode 100644 index d4a9f4e..0000000 --- a/resources/views/admin/type/hand-over-status.blade.php +++ /dev/null @@ -1,1333 +0,0 @@ - - - - - - - - - - - -
-
- - -
-
-
- Select sections to export - -
- - -
-
-
- -
-
-

Hand Over Status / Статус передачи

-
-
-
-
-
- -
-
-

Weekly Created Packages / Еженедельное количество созданных пакетов

-
-
-
-
-
- -
-
-

Weekly Created Packages by Personnel / Еженедельное количество по персоналу

-
-
-
-
-
- -
-
-

Weekly Archived Packages / Еженедельное количество архивированных пакетов

-
-
-
-
-
- -
-
-

Monthly Control Wait Times / Ежемесячное время ожидания контроллеров

-
-
-
-
-
-
- - - \ No newline at end of file diff --git a/resources/views/admin/type/hand-over.blade.php b/resources/views/admin/type/hand-over.blade.php deleted file mode 100644 index f685570..0000000 --- a/resources/views/admin/type/hand-over.blade.php +++ /dev/null @@ -1,746 +0,0 @@ -select($controllerFields)->get(); -$translatedControllers = []; -foreach ($allControllers as $row) { - foreach ($controllerFields as $field) { - if (!empty($row->$field) && !isset($translatedControllers[$row->$field])) { - $translatedControllers[$row->$field] = e2($row->$field); - } - } -} -$translatedControllersJson = json_encode($translatedControllers); -$blockGroup = [ - 'General Info' => [ - 'object', - 'location', - 'work_type', - 'project', - 'collected_volumes', - 'not_collected_volumes', - 'total_volumes', - 'responsible', - 'responsible_company', - 'subcontractor', - 'created_date', - 'revision_date', - 'final_status', - 'id_status', - - 'pto_comments', - ], -]; - -for ($i = 1; $i <= $handoverControlCount; $i++) { - $blockGroup['Control ' . $i] = [ - "control{$i}_controller", - "control{$i}_date1", - "control{$i}_date2", - "control{$i}_date3", - "control{$i}_id_status", - "control{$i}_comments", - "control{$i}_responsible", - ]; -} - -$blockGroup += [ - /* - 'Waiting Tech' => [ - 'waiting_tech1', - 'waiting_tech2', - 'waiting_tech3', - 'sum_tech', - ], - 'Waiting STE' => [ - 'waiting_ste1', - 'waiting_ste2', - 'waiting_ste3', - 'sum_ste', - ], - 'STE Status' => [ - 'date_of_transfer_ste1', - 'date_of_return_ste1', - 'status_ste1', - 'date_of_transfer_ste2', - 'date_of_return_ste2', - 'status_ste2', - ], - 'APAT Status' => [ - 'waiting_apat1', - 'waiting_apat2', - 'sum_apat', - 'waiting_ste_apat1', - 'waiting_ste_apat2', - 'sum_ste_apat', - 'atg', - ], - */ - 'Location Info' => [ - 'archive', - 'status_atg', - 'atg_date', - 'atg_comment', - 'reminder', - ], - /* - 'Tex Info' => [ - 'month_tex1', - 'year_tex1', - 'year_month_tex1', - 'month_tex2', - 'year_tex2', - 'year_month_tex2', - 'month_tex3', - 'year_tex3', - 'year_month_tex3', - ], - 'Apatit Info' => [ - 'month_apatit1', - 'year_apatit1', - 'year_month_apatit1', - 'month_apatit2', - 'year_apatit2', - 'year_month_apatit2', - ], - */ -]; - - -$relationDatas = [ - 'object' => [ - 'values' => db("weld_logs")->groupBy("project")->get()->pluck("project")->toArray(), - 'type' => 'manuel-select' - ], - 'work_type' => [ - 'values' => db("work_types")->get()->pluck("title_ru")->toArray(), - 'type' => 'manuel-select' - ], -]; - -$subcontractors = db("subcontractors")->get(); - -// Control controller alanları için dinamik olarak select-dropdown ekleme -for ($i = 1; $i <= $handoverControlCount; $i++) { - $relationDatas["control{$i}_controller"] = [ - 'datas' => $subcontractors, - 'pattern' => '{company_name_en}', - 'type' => 'select-dropdown' - ]; -} - -// Control status alanları için dinamik olarak values ekleme -for ($i = 1; $i <= $handoverControlCount; $i++) { - $relationDatas["control{$i}_id_status"] = [ - 'values' => [ - 'Agreed / подписано', - 'Comment / замечание', - 'Revision / Редакция', - ], - 'type' => 'manuel-select' - ]; -} - -$relationDatas["archive"] = [ - 'values' => [ - 'Agreed / подписано', - 'Comment / замечание', - 'Revision / Редакция', - 'Archive / Архив', - ], - 'type' => 'manuel-select' -]; - -// Control comments alanları için dinamik olarak long-text ekleme -for ($i = 1; $i <= $handoverControlCount; $i++) { - $relationDatas["control{$i}_comments"] = [ - 'type' => 'long-text', - ]; - $relationDatas["control{$i}_responsible"] = [ - 'type' => 'manuel-select', - 'values' => db("work_permit_documents")->whereNotNull("name_surname")->get()->pluck("name_surname")->toArray(), - ]; -} - -$relationDatas += [ - 'pto_comments' => [ - 'type' => 'long-text', - ], - 'atg_comment' => [ - 'type' => 'long-text', - ], - 'status_ste1' => [ - 'values' => [ - 'Agreed / подписано', - 'Comment / замечание', - 'Revision / Редакция', - ], - 'type' => 'manuel-select' - ], - 'status_ste2' => [ - 'values' => [ - 'Agreed / подписано', - 'Comment / замечание', - 'Revision / Редакция', - ], - 'type' => 'manuel-select' - ], - 'status_atg' => [ - 'values' => [ - 'Agreed / подписано', - 'Comment / замечание', - 'Revision / Редакция', - ], - 'type' => 'manuel-select' - ], - 'final_status' => [ - 'type' => 'text', - 'readonly' => true - ], - 'id_status' => [ - 'type' => 'text', - 'readonly' => true - ], -]; -/* -'test_package_number', - 'circuit_number', - 'p_id', - 'iso_quantity', - 'subcontractor', - 'welding_status', - 'total_wdi', - 'total_complated_wdi', - 'total_shop_wdi', - 'total_complated_shop_wdi', - 'total_field_wdi', - 'total_complated_field_wdi', - 'test_type', - 'test_medium', - 'test_pressure', - 'golden_joints', - 'tp_general_status', - 'test_package_sent_date', - 'status', - 'test_package_approval_date', - 'walkdown_date', - 'punch_list', - 'a_punch_point_open', - 'b_punch_point_open', - 'c_punch_point_open', - 'received_by_qc', - 'ndt_status', - 'repair_status_total', - 'planned_test', - 'responsible_test', - 'rfi_no', - 'rfi_date', - 'test_status', - 'cleaning_blowing_drying_rfi', - 'responsible_cleaning', - 'cleaning_blowing_drying_status', - ' ', - 'cleaning_blowing_drying_rfi_no', - 'reinstatement_rfi', - 'responsible_reinstatement', - 'reinstatement_status', - 'reinstatement_date', - 'cw', - 'priority', - 'priority_info', - 'system_combine', - 'planned_test_date', -*/ - - -?> - - -
- - -
-
-
-
-

Weekly Created Packages

-
-
-
-
-
-
-
-
-
-

Weekly Created Packages by Personnel

-
-
-
-
-
-
-
-
-
-

Weekly Archived Packages

-
-
-
-
-
-
-
-
-
-

Wait Time Analysis (Avg Days)

-
-
-
-
-
-
-
- - - -
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/hardness-test.blade.php b/resources/views/admin/type/hardness-test.blade.php deleted file mode 100644 index c205c57..0000000 --- a/resources/views/admin/type/hardness-test.blade.php +++ /dev/null @@ -1,26 +0,0 @@ -paginate(setting('row_count')); -$tableName = "hardness_tests"; - -$tableType = "datagrid"; - - -?> - - -
-
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/ht-log.blade.php b/resources/views/admin/type/ht-log.blade.php deleted file mode 100644 index 46fff9e..0000000 --- a/resources/views/admin/type/ht-log.blade.php +++ /dev/null @@ -1,139 +0,0 @@ -paginate(setting('row_count')); -$tableName = "hardness_tests"; - -$tableType = "datagrid"; - -$relationDatas = [ - 'report_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'ht_result' => [ - 'datas' => db("results")->get(), - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ], -]; -$blockGroup = [ - 'Info' => [ - 'report_file', - 'contractor', - ], - 'Invoice' => [ - 'invoice_number', - 'invoice_date', - ], - 'Laboratory' => [ - 'test_laboratory_ht', - - ], - 'Project' => [ - 'project', - - ], - 'Design' => [ - 'design_area', - 'line_specification', - 'line_number', - 'fluid_code', - 'service_category', - 'fluid_group', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - - ], - 'ISO Info' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_welds', - ], - 'Welding Info' => [ - 'welding_date', - 'wps_no', - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welder_1', - 'welder_2', - ], - 'Base Element Info' => [ - 'certificate_no_1', - 'wpq_report_1', - 'certificate_no_2', - 'wpq_report_2', - 'member_no_1', - 'material_no_1', - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'element_code_1', - 'member_no_2', - 'material_no_2', - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'element_code_2', - ], - 'HT Info' => [ - 'ht_request_no', - 'ht_request_date', - 'no_of_ht_hardnes_test', - 'ht_test_date', - 'ht_result', - 'control_standart', - 'tester_name', - 'real_welder_1', - 'real_welder_2', - 'record_1_rc', - 'record_2_rc', - 'record_3_rc', - ], - - - - -]; - - -$firstUploadFolder = '004_QA/0008_HT/'; -$firstUploadTitle = 'Upload PDF'; -$uploadPermissionKey = 'ht_log_upload_permission'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/hydro-tests.blade.php b/resources/views/admin/type/hydro-tests.blade.php deleted file mode 100644 index 26eabb7..0000000 --- a/resources/views/admin/type/hydro-tests.blade.php +++ /dev/null @@ -1,50 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
- groupBy("iso_number")->select("iso_number")->groupBy("iso_number")->get()->pluck("iso_number")->toArray(); - $path = "storage/documents/005_PTO/06_Прочность и плотность"; - $lineLists = glob("$path/*.*"); - ?> -
-
-
- - -
-
-
-
{{e2("Generate All")}}
-
- -
- -
-
- -
- - - -
- -
- - - \ No newline at end of file diff --git a/resources/views/admin/type/incoming-control-paint.blade.php b/resources/views/admin/type/incoming-control-paint.blade.php deleted file mode 100644 index 3730bd0..0000000 --- a/resources/views/admin/type/incoming-control-paint.blade.php +++ /dev/null @@ -1,282 +0,0 @@ - '?sync', - 'html' => ' ' . __("Sync Data From MTO") -]; -*/ - - -$blockGroup = [ - 'General Information' => [ - 'pdf_certificate', - 'pdf_akt', - 'rfi_no', - 'rfi_date', - 'akt_number', - 'akt_date', - 'suplier', - 'project', - 'revision', - 'component_name', - ], - 'Paint Details' => [ - 'brend_name', - 'colour', - 'ral_code', - 'manufacturing_standard', - 'lot_no', - ], - 'Quantity Information' => [ - 'quantity', - 'unit_kgmetc', - 'certificate_quantity', - 'certificate_page_quantity', - ], - 'Certificate Information' => [ - 'certificate_no', - 'certificate_date', - ], - 'Status Information' => [ - 'akt_status', - 'inspected_by', - 'third_party', - ] -]; - - -$paintMatrix = db("paint_matrices")->get(); -$brends = []; - -foreach($paintMatrix AS $pm) { - - if(!is_null($pm->brend_name_1)) - $brends[] = $pm->brend_name_1; - - if(!is_null($pm->brend_name_2)) - $brends[] = $pm->brend_name_2; - - if(!is_null($pm->brend_name_3)) - $brends[] = $pm->brend_name_3; -} - -$brends = array_unique($brends); - -$relationDatas = [ - 'pdf_certificate' => [ - 'type' => 'link-search', - 'html' => '' - ], - - 'pdf_akt' => [ - 'type' => 'link-search', - 'html' => '' - ], - - 'unit_kgmetc' => [ - 'values' => [ - 'KG', - 'MM', - 'Piece', - ], - 'type' => 'manuel-select' - ], - 'akt_status' => [ - 'values' => [ - 'Signed', - 'Waiting', - 'Preparing', - ], - 'type' => 'manuel-select' - ], - 'ral_code' => [ - 'values' => $ralCodes, - 'type' => 'manuel-select' - ], - 'discipline' => [ - 'datas' => db("disciplines")->get(), - 'pattern' => '{discipline_title}', - 'type' => 'select-dropdown' - ], - - 'brend_name' => [ - 'values' => $brends, - 'type' => 'manuel-select' - ], - -]; - -$prependColumns = [ - /* - 'Certificate File' => [ - 'type' => 'link-search', - 'path' => '002_Project_Materials/002_Material Certificate/', - 'pattern' => "{certificate_no}*.pdf", - 'html' => '' - ], - 'AKT File' => [ - 'type' => 'link-search', - 'path' => '002_Project_Materials/001_Material Akt/', - 'pattern' => "{akt_number}*.pdf", - 'html' => '' - ], - */ -]; - -$firstUploadFolder = '002_Project_Materials/002_Material Certificate/'; -$firstUploadTitle = 'Upload Certificate File PDF'; -$secondUploadFolder = '002_Project_Materials/001_Material Akt/'; -$secondUploadTitle = 'Upload AKT File PDF'; -$uploadPermissionKey = 'incoming_control_paint_upload_permission'; - -?> - - - - -
-
- where("id",">", $lastId)->take(1000)->get(); - // dd($mtos); - - $count = 0; - - bilgi("Started ID :Id", "success", ['Id' => $lastId]); - - foreach($mtos AS $mto) { - $data = [ - 'component_code' => $mto->component_code_id, - 'description_en' => $mto->description_en, - 'description_ru' => $mto->description_ru, - 'manufacturing_standard' => $mto->manufacturing_standard, - 'material' => $mto->material , - 'material_quality_standard' => $mto->material_quality_standard, - 'dia_inch_1' => $mto->dia_inch_1, - 'dn_1' => $mto->dn_1, - 'odmm_1' => $mto->odmm_1, - 'schedule_1' => $mto->schedule_1, - 'thicknessmm_1' => $mto->thicknessmm_1, - 'diainch_2' => $mto->diainch_2, - 'dn_2' => $mto->dn_2, - 'odmm_2' => $mto->odmm_2, - 'schedule_2' => $mto->schedule_2, - 'thicknessmm_2' => $mto->thicknessmm_2, - 'pn_mpa' => $mto->pn_mpa, - /* - 'heat_number', - 'akt_status', - 'scan_certificate_link', - 'scan_akt_link', - 'inspected_by', - 'third_party', - 'constructor', - 'osd_report_no', - */ - ]; - - IncomingControlPaint::firstOrCreate($data); - - Cache::put($cachePrefix, $mto->id); - - $count++; - } - - bilgi(":count Data has been sync from MTO", - "success", - ['count' => $count] - ); - -} - -$listDatas = IncomingControlPaint::orderBy("id","DESC")->paginate(setting('row_count')); - - ?> - @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
- diff --git a/resources/views/admin/type/incoming-control.blade.php b/resources/views/admin/type/incoming-control.blade.php deleted file mode 100644 index 52061fa..0000000 --- a/resources/views/admin/type/incoming-control.blade.php +++ /dev/null @@ -1,427 +0,0 @@ - '?sync', - 'html' => ' ' . __("Sync Data From MTO") -]; - -$blockGroup = [ - 'Files' => [ - 'certificate_file', - 'akt_file', - 'email_tq_file', - 'osd_defect_akt_file', - ], - 'General Information' => [ - 'rfi', - 'rfi_date', - 'discipline', - 'designer', - 'component_code', - 'request_no', - 'request_date', - ], - 'Packing Info' => [ - 'packing_list_number', - 'packing_list_position', - 'packing_list_quantity', - 'akt_number', - 'date_of_akt', - - ], - 'Project Info' => [ - 'project', - 'drawing_number', - 'revision', - 'short_name_material', - 'description_en', - 'description_ru', - 'manufacturing_standard', - 'material', - 'material_quality_standard', - ], - 'Diameter & Thickness' => [ - 'dia_inch_1', - 'dn_1', - 'odmm_1', - 'schedule_1', - 'thicknessmm_1', - 'diainch_2', - 'dn_2', - 'odmm_2', - 'schedule_2', - 'thicknessmm_2', - ], - 'Quantity Info' => [ - 'pn_mpa', - 'requested_quantity', - 'received_quantity', - 'certificate_quantity', - 'unit_kgmetc', - ], - 'Cleaning Material Certificate' => [ - 'cleaning_certificate_no', - 'cleaning_certificate_date', - 'cleaning_certificate_page_quantity', - 'cleaning_heat_number', - 'cleaning_akt_status', - ], - 'Certificate Info' => [ - 'certificate_no', - 'certificate_date', - 'certificate_page_quantity', - 'heat_number', - 'akt_status', - /* - 'scan_certificate_link', - 'scan_akt_link', - */ - ], - 'Email / Technical Query Tracking' => [ - 'email_tq_number', - ], - 'Result' => [ - 'inspected_by', - 'third_party', - 'constructor', - 'osd_report_no', - 'osd_report_date', - 'remarks', - ], - -]; - -$relationDatas = [ - 'certificate_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'akt_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'email_tq_file' => [ - 'caption' => 'TQ', - 'type' => 'link-search', - 'html' => '' - ], - 'osd_defect_akt_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'unit_kgmetc' => [ - 'values' => j(setting('unit_kgmetc')) ?? [], - 'type' => 'manuel-select' - ], - 'akt_status' => [ - 'values' => [ - 'Signed', - 'Waiting', - 'Preparing', - ], - 'type' => 'manuel-select' - ], - - 'designer' => [ - 'datas' => db("subcontractors")->where("operation_type", "Engineering")->get(), - 'pattern' => '{company_name_ru}', - 'type' => 'select-dropdown' - ], - 'discipline' => [ - 'datas' => db("disciplines")->get(), - 'pattern' => '{discipline_title}', - 'type' => 'select-dropdown' - ], - 'description_en' => [ - 'type' => 'string', - 'headerFilter' => [ - 'dataSource' => 'custom' - ] - ], - 'description_ru' => [ - 'type' => 'string', - 'headerFilter' => [ - 'dataSource' => 'custom' - ] - ], - 'material' => [ - 'type' => 'string', - 'headerFilter' => [ - 'dataSource' => 'custom' - ] - ], - 'manufacturing_standard' => [ - 'type' => 'string', - 'headerFilter' => [ - 'dataSource' => 'custom' - ] - ], - 'drawing_number' => [ - 'caption' => 'Line', - 'type' => 'string' - ], - 'project' => [ - 'caption' => 'Project', - 'type' => 'string' - ], - 'email_tq_number' => [ - 'type' => 'string' - ], - -]; -/* -$prependColumns = [ - 'Certificate File' => [ - 'type' => 'link-search', - 'path' => '002_Project_Materials/002_Material Certificate/', - 'pattern' => "{certificate_no}*.pdf", - 'html' => '' - ], - 'AKT File' => [ - 'type' => 'link-search', - 'path' => '002_Project_Materials/001_Material Akt/', - 'pattern' => "{akt_number}*.pdf", - 'html' => '' - ], -]; -*/ - -$firstUploadFolder = '002_Project_Materials/002_Material Certificate/'; -$firstUploadTitle = 'Upload Certificate File PDF'; -$secondUploadFolder = '002_Project_Materials/001_Material Akt/'; -$secondUploadTitle = 'Upload AKT File PDF'; -$thirdUploadFolder = '002_Project_Materials/005_Material_Agreement/'; -$thirdUploadTitle = 'Upload Email/TQ File'; -$thirdUploadDescription = 'Drop Email/TQ agreement files here or upload them selectively.'; -$thirdUploadAccepted = '.pdf,.jpg,.jpeg,.png'; -$fourthUploadFolder = '002_Project_Materials/006_Defect_Documents/'; -$fourthUploadTitle = 'Upload OSD Defect Document'; -$fourthUploadDescription = 'Drop OSD Defect documents here or upload them selectively.'; -$fourthUploadAccepted = '.pdf,.jpg,.jpeg,.png'; -$uploadPermissionKey = 'incoming_control_upload_permission'; - -?> - - -
-
- where("id",">", $lastId)->take(1000)->get(); - // dd($mtos); - - $count = 0; - - bilgi("Started ID :Id", "success", ['Id' => $lastId]); - - foreach($mtos AS $mto) { - $data = [ - 'component_code' => $mto->component_code_id, - 'description_en' => $mto->description_en, - 'description_ru' => $mto->description_ru, - 'manufacturing_standard' => $mto->manufacturing_standard, - 'material' => $mto->material , - 'material_quality_standard' => $mto->material_quality_standard, - 'dia_inch_1' => $mto->dia_inch_1, - 'dn_1' => $mto->dn_1, - 'odmm_1' => $mto->odmm_1, - 'schedule_1' => $mto->schedule_1, - 'thicknessmm_1' => $mto->thicknessmm_1, - 'diainch_2' => $mto->diainch_2, - 'dn_2' => $mto->dn_2, - 'odmm_2' => $mto->odmm_2, - 'schedule_2' => $mto->schedule_2, - 'thicknessmm_2' => $mto->thicknessmm_2, - 'pn_mpa' => $mto->pn_mpa, - 'drawing_number' => $mto->drawing_number, - /* - 'heat_number', - 'akt_status', - 'scan_certificate_link', - 'scan_akt_link', - 'inspected_by', - 'third_party', - 'constructor', - 'osd_report_no', - */ - ]; - - IncomingControl::firstOrCreate($data); - - Cache::put($cachePrefix, $mto->id); - - $count++; - } - - bilgi(":count Data has been sync from MTO", - "success", - ['count' => $count] - ); - -} - -$listDatas = IncomingControl::orderBy("id","DESC")->paginate(setting('row_count')); - - ?> - @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
- diff --git a/resources/views/admin/type/internal-cleaning-of-pipelines.blade.php b/resources/views/admin/type/internal-cleaning-of-pipelines.blade.php deleted file mode 100644 index d26d4f1..0000000 --- a/resources/views/admin/type/internal-cleaning-of-pipelines.blade.php +++ /dev/null @@ -1,50 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
- groupBy("iso_number")->select("iso_number")->groupBy("iso_number")->get()->pluck("iso_number")->toArray(); - $path = "storage/documents/005_PTO/11_Внутренней очистки"; - $lineLists = glob("$path/*.*"); - ?> -
-
-
- - -
-
-
-
{{e2("Generate All")}}
-
- -
- -
-
- -
- - - -
- -
- - - \ No newline at end of file diff --git a/resources/views/admin/type/itp.blade.php b/resources/views/admin/type/itp.blade.php deleted file mode 100644 index 1aba834..0000000 --- a/resources/views/admin/type/itp.blade.php +++ /dev/null @@ -1,62 +0,0 @@ -paginate(setting('row_count')); -$tableName = "i_t_p_s"; -//$noRemoteOperations = true; - -$blockGroup = [ - 'General Informations' => [ - 'download', - 'discipline', - 'itp_no', - 'item_no', - 'inspection_step_ru', - 'inspection_step_en', - 'standard_procedures', - 'working_drawing', - 'report_document_protocol', - ], - 'Inspection Control' => [ - 'subcontractor', - 'ste', - 'cas', - 'mf', - ], - 'Remarks' => ['remarks'] -]; - -$relationDatas = [ - 'download' => [ - 'type' => 'link-search', - 'html' => '' - ], - - 'discipline' => [ - 'values' => db("disciplines")->groupBy("discipline_title")->get()->pluck("discipline_title")->toArray(), - 'type' => 'manuel-select' - ], -]; -$firstUploadFolder = '004_QA/000_ITP/'; -$firstUploadTitle = 'Upload PDF'; -$uploadPermissionKey = 'itp_upload_permission'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/joint-release-log.blade.php b/resources/views/admin/type/joint-release-log.blade.php deleted file mode 100644 index 9637114..0000000 --- a/resources/views/admin/type/joint-release-log.blade.php +++ /dev/null @@ -1,275 +0,0 @@ - [ - 'pdf_engineering', - 'pdf_spool_iso', - 'pdf_as_build', - ], - 'General Information' => [ - 'general_contractor', - 'contractor', - 'ste_subcontractor', - 'project', - 'spool_zone', - 'piping_class', - 'design_area', - 'line_number', - ], - 'Spool Information' => [ - 'iso_number', - 'iso_rev', - 'spool_number', - 'spool_status', - 'clearance_no', - 'clearance_date', - ], - 'Joint Information' => [ - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_joint', - 'type_of_welds', - 'welding_date', - ], - 'Joint Release' => [ - 'joint_release_rfi_no', - 'joint_release_rfi_date', - 'joint_release_document_no', - 'joint_release_document_date', - ], - 'RT Release' => [ - 'rt_scope', - 'rt_report', - 'rt_test_date', - 'rt_result', - 'rt_release_rfi_no', - 'rt_release_rfi_date', - ], - 'UT Release' => [ - 'ut_scope', - 'ut_report', - 'ut_test_date', - 'ut_result', - 'ut_release_rfi_no', - 'ut_release_rfi_date', - ], - 'PT Release' => [ - 'pt_scope', - 'pt_report', - 'pt_test_date', - 'pt_result', - 'pt_release_rfi_no', - 'pt_release_rfi_date', - ], - 'MT Release' => [ - 'mt_scope', - 'mt_report', - 'mt_test_date', - 'mt_result', - 'mt_release_rfi_no', - 'mt_release_rfi_date', - ], - 'PMI Release' => [ - 'pmi_scope', - 'pmi_report', - 'pmi_test_date', - 'pmi_result', - 'pmi_release_rfi_no', - 'pmi_release_rfi_date', - ], - 'VT Release' => [ - 'vt_scope', - 'vt_report', - 'date_of_vt', - 'vt_result', - 'vt_release_rfi_no', - 'vt_release_rfi_date', - ], - 'PWHT Release' => [ - 'pwht', - 'pwht_date', - 'pwht_release_rfi_no', - 'pwht_release_rfi_date', - ], - 'HT Release' => [ - 'ht_scope', - 'ht_report', - 'ht_result', - 'ht_release_rfi_no', - 'ht_release_rfi_date', - ], - 'Ferrite Release' => [ - 'ferrite_scope', - 'no_of_ferrite_check', - 'date_of_ferrite_check', - 'ferrite_result', - 'ferrite_release_rfi_no', - 'ferrite_release_rfi_date', - ], -]; - -$columnRedesign = []; -$columnsArray = ['rt', 'ut', 'pt', 'mt', 'pmi', 'vt', 'pwht', 'ht', 'ferrite']; -foreach ($columnsArray as $columnKey) { - $columnRedesign[$columnKey]['class'] = "col-md-6"; - $columnRedesign[$columnKey]['border'] = true; - $columnRedesign[$columnKey]['color'] = 15; -} - -// RFI no alanları ve karşılık gelen date alanları -$rfiFields = [ - 'joint_release_rfi_no' => 'joint_release_rfi_date', - 'rt_release_rfi_no' => 'rt_release_rfi_date', - 'ut_release_rfi_no' => 'ut_release_rfi_date', - 'pt_release_rfi_no' => 'pt_release_rfi_date', - 'mt_release_rfi_no' => 'mt_release_rfi_date', - 'pmi_release_rfi_no' => 'pmi_release_rfi_date', - 'vt_release_rfi_no' => 'vt_release_rfi_date', - 'pwht_release_rfi_no' => 'pwht_release_rfi_date', - 'ht_release_rfi_no' => 'ht_release_rfi_date', - 'ferrite_release_rfi_no' => 'ferrite_release_rfi_date', -]; - -?> - -@include("admin.type.weldmap.main") -@include("components.rfi-popup") \ No newline at end of file diff --git a/resources/views/admin/type/leak-tests.blade.php b/resources/views/admin/type/leak-tests.blade.php deleted file mode 100644 index c325fb6..0000000 --- a/resources/views/admin/type/leak-tests.blade.php +++ /dev/null @@ -1,50 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
- groupBy("iso_number")->select("iso_number")->groupBy("iso_number")->get()->pluck("iso_number")->toArray(); - $path = "storage/documents/005_PTO/07_Герметичность"; - $lineLists = glob("$path/*.*"); - ?> -
-
-
- - -
-
-
-
{{e2("Generate All")}}
-
- -
- -
-
- -
- - - -
- -
- - - \ No newline at end of file diff --git a/resources/views/admin/type/line-certificates.blade.php b/resources/views/admin/type/line-certificates.blade.php deleted file mode 100644 index 9362287..0000000 --- a/resources/views/admin/type/line-certificates.blade.php +++ /dev/null @@ -1,54 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
- groupBy("line_no")->select("line_no")->groupBy("line_no")->get()->pluck("line_no")->toArray(); - - ?> -
-
-
- - -
-
-
-
{{e2("Generate All")}}
-
{{e2("Generate One")}}
- -
- -
- -
-
- -
- - - -
- -
- - - \ No newline at end of file diff --git a/resources/views/admin/type/line-list.blade.php b/resources/views/admin/type/line-list.blade.php deleted file mode 100644 index f503bec..0000000 --- a/resources/views/admin/type/line-list.blade.php +++ /dev/null @@ -1,350 +0,0 @@ -paginate(setting('row_count')); -$tableName = "line_lists"; - -if(getisset("fill")) { - $pattern = setting("line_list_drawing_no_pattern"); - $emptyLists = LineList::orderBy("id","DESC")->get()->toArray(); - $fillCount = 0; - foreach($emptyLists AS $emptyList) { - - $thisPattern = $pattern; - foreach($emptyList AS $column => $value) { - $thisPattern = str_replace("{". $column. "}",$value, $thisPattern); - } - - LineList::where("id", $emptyList['id']) - ->update( - [ - 'sheet'=>$thisPattern] - ); - $fillCount++; - } - -} - - -$relationDatas = [ - 'naks_technology' => [ - 'values' => db("hazard_classes")->select("serial_number")->get()->pluck("serial_number"), - 'type' => 'manuel-select' - ], - - 'engineering' => [ - 'values' => db("subcontractors")->select("company_name_en")->where("job_description", "ENGINEERING")->get()->pluck("company_name_en"), - 'type' => 'manuel-select' - ], - 'pwht' => [ - 'values' => [ - 'YES', - 'NO', - ], - 'type' => 'manuel-select' - ], - 'category' => [ - 'type' => 'auto-complete', - 'table' => 'line_list_categories', - 'column' => 'category_title', - 'pattern' => '{category_title}', - 'affected' => [], - ], - 'fluid_group' => [ - 'type' => 'auto-complete', - 'table' => 'line_list_groups', - 'column' => 'group_title', - 'pattern' => '{group_title}', - 'affected' => [], - ], - 'leakage' => [ - 'values' => [ - 'YES', - 'NO', - ], - 'type' => 'manuel-select' - ], - 'tracing' => [ - 'values' => [ - 'YES', - 'NO', - ], - 'type' => 'manuel-select' - ], - 'tracing_type' => [ - 'values' => [ - 'Steam', - 'Heat', - 'Oil', - 'Electrical', - ], - 'type' => 'manuel-select' - ], - - /* - 'sheet' => [ - 'type' => 'auto-complete', - 'table' => 'weld_logs', - 'column' => 'iso_number', - 'pattern' => '{iso_number}', - 'affected' => [], - ], - */ -]; - - -/* -dd(table_columns($tableName)); - 0 => "id" - 3 => "unit" - 4 => "line_no" - 5 => "sheet" - 6 => "p_id" - 7 => "line_specification" - 8 => "painting_cycle" - 9 => "external_finish_type" - 10 => "rev" - 11 => "fluid_code" - 12 => "from" - 13 => "to" - 14 => "pipe_material_class" - 15 => "dn" - 16 => "design_pressure_mpa" - 17 => "working_pressure_mpa" - 18 => "working_temperature" - 19 => "design_temperature" - 20 => "density" - 21 => "ndt" - 22 => "pwht" - 23 => "asme_fluid_service" - 24 => "category" - 25 => "fluid_group" - 26 => "test_media" - 27 => "test_pressure_mpa" - 28 => "pneumatic_test_pressure" - 29 => "remarks" -] -*/ -$blockGroup = [ - 'Basic Drawing Data' => [ - 'naks_technology', - 'plant', - 'engineering', - 'unit', - 'line_no', - 'sheet', - 'p_id', - 'line_specification', - 'painting_cycle', - 'external_finish_type', - 'tracing', - 'tracing_type', - 'rev', - ], - 'Design Data' => [ - 'circuit_number', - 'fluid_code', - 'fluid_ru', - 'fluid_en', - 'from', - 'to', - 'pipe_material_class', - 'dn', - 'design_pressure_mpa', - 'working_pressure_mpa', - 'working_temperature', - 'design_temperature', - 'density', - 'ndt', - 'pwht', - - ], - 'Clasification Data' => [ - 'asme_fluid_service', - 'category', - 'fluid_group', - - - ], - 'Test Pressures Information' => [ - 'test_media', - 'test_pressure_mpa', - 'leakage', - 'test_pressure', - 'remarks', - ] -]; - -$columnRedesign['test-pressures-information']['class'] = "col-md-6"; -$columnRedesign['clasification-data']['class'] = "col-md-6"; - -$topButtons = []; -$topButtons[] = [ - 'href' => '?fill', - 'html' => ' ' . __("Fill Drawing No Use Pattern") -]; - - -?> - - - -
-
-
- {{isset($fillCount) ? bilgi(":count Data has been fill use pattern", - "success", - ['count' => $fillCount] - ) : ""}} -
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/line-specification.blade.php b/resources/views/admin/type/line-specification.blade.php deleted file mode 100644 index 5583712..0000000 --- a/resources/views/admin/type/line-specification.blade.php +++ /dev/null @@ -1,55 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
- groupBy("line")->select("line")->groupBy("line")->get()->pluck("line")->toArray(); - - ?> -
-
-
- - -
-
-
-
{{e2("Generate All")}}
-
- -
- -
-
- -
- - - -
- -
- - - \ No newline at end of file diff --git a/resources/views/admin/type/manage-ndt.blade.php b/resources/views/admin/type/manage-ndt.blade.php deleted file mode 100644 index 88d2d95..0000000 --- a/resources/views/admin/type/manage-ndt.blade.php +++ /dev/null @@ -1,475 +0,0 @@ -where("iso_number", "like", "%" . trim(get("iso_number")) . "%"); - $get = true; - - -} -if(!getesit("d1","")) { - $datas = $datas->whereDate("welding_date", ">=", get("d1")); - $datas = $datas->whereDate("welding_date", "<=", get("d2")); - $get = true; -} - -if(!getesit("spool_no","")) { - $datas = $datas->where("spool_number", trim(get("spool_no"))); - $get = true; -} - - - -$naksWelders = db("naks_welders")->groupBy("welder_id")->whereNotNull("welder_id")->get(); - -if($get) { - $datas = $datas->get(); -} else { - $datas = $datas->paginate(20); -} - - -$requiredFields = required_fields(); - -$neverWeldingDate = true; -foreach($datas AS $data) { - if($data->welding_date == "0000-00-00" || $data->welding_date == "") { - $progress = "Waiting"; - $progress_type = "danger"; - } else { - $neverWeldingDate = false; - } -} - -if($neverWeldingDate) { - $progress = "On Going"; - $progress_type = "warning"; -} -if($datas->count() != 0) { - $firstData = $datas[0]; - if(!getesit("iso_number","")) { - $isoNumberTitle = "
LINE: {$firstData->iso_number}
"; - } -} - - -$columns = [ - 'id', - 'general_contractor', - 'contractor', - 'design_area', - 'line_specification', - 'line_number', - 'main_material', - 'main_nps', - 'fluid_code', - 'service_category', - 'fluid_group', - 'piping_class', - 'design_temperature_s', - 'design_pressure_mpa', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - 'painting_cycle', - 'external_finish_type', - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - - 'certificate_no', - 'wpq_report', - 'member_1', - 'material_1', - 'ru_material_group', - 'certificate_number_of_1', - 'heat_number_1', - 'nps', - 'thickness_by_asme_s_20_std', - 'outside_diameter_mm', - 'wall_thickness_mm', - '1_element_code', - 'member_2', - 'material_2', - 'ru_material_group2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps2', - 'thickness_by_asme_s_20_std2', - 'outsidediametermm', - 'wallthickness_mm', - '2_element_code', - 'ndt_percent', - 'vt_scope', - 'vt_request_no', - 'vt_report', - 'date_of_vt', - 'vt_request_date', - 'test_laboratory_vt', - 'vt_result', - 'rt_scope', - 'rt_request_no', - 'rt_report', - 'rt_test_date', - 'rt_request_date', - 'test_laboratory_rt', - 'rt_result', - 'ut_scope', - 'ut_request_no', - 'ut_report', - 'ut_test_date', - 'ut_request_date', - 'test_laboratory_ut', - 'ut_result', - 'ut_type', - 'pt_scope', - 'pt_request_no', - 'pt_report', - 'pt_test_date', - 'pt_request_date', - 'test_laboratory_pt', - 'pt_result', - 'mt_scope', - 'mt_request_no', - 'mt_report', - 'mt_test_date', - 'mt_request_date', - 'test_laboratory_mt', - 'mt_result', - 'pmi_scope', - 'pmi_request_no', - 'pmi_report', - 'no_of_testing_report', - 'pmi_test_date', - 'pmi_request_date', - 'test_laboratory_pmi', - 'pmi_result', - 'nde', - 'group_no', - 'pwht', - 'pwht_date', - 'of_pwht_report', - 'diagram_number_pwht', - 'test_laboratory_pwht', - 'nt_scope', - 'ht_request', - 'no_of_ht_hardnes_test', - 'ht_request_date', - 'test_laboratory_ht', - 'ht_result', - 'ferrite_scope', - 'ferrite_check_request', - 'no_of_ferrite_check', - 'date_of_ferrite_check', - 'test_laboratory_ferrite', - 'ferrite_result', - 'test_package', - 'test_pressure', - 'type_of_test', - 'date_test', - 'test_result', - 'real_welder_1', - 'real_welder_2', - 'ste_subcontructer' -]; - -$lineWeldDate = [ - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_joint', - 'type_of_welds', - 'welding_date', - 'spool_number', - 'welder_1', - 'welder_2', - 'outside_diameter_1', - 'wall_thickness_1', - 'outside_diameter_2', - 'wall_thickness_2', - 'vt_request_date', - 'test_laboratory_vt', - 'pwht_date', - 'test_laboratory_pwht', - 'ht_request_date', - 'test_laboratory_ht', - 'rt_request_date', - 'test_laboratory_rt', - 'ut_test_date', - 'ut_request_date', - 'test_laboratory_ut', - 'ut_type', - 'pt_test_date', - 'test_laboratory_pt', - 'mt_test_date', - 'mt_request_date', - 'test_laboratory_mt', - 'pmi_test_date', - 'test_laboratory_pmi', - 'spool_release_date', -]; - - -$jointByLineTo = [ - 'id', - 'spool_number', - 'test_package_no', - 'no_of_the_joint_as_per_as_built_survey', - - 'type_of_joint', - 'type_of_welds', - 'welding_date', - 'welder_1', - 'welder_2', - 'member_no_1', - 'material_no_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'member_no_2', - 'material_no_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'date_of_vt', - 'vt_result', - - 'rt_scope', - 'rt_test_date', - 'rt_request_date', - 'rt_result', - - 'ut_scope', - 'ut_test_date', - 'ut_request_date', - 'ut_result', - - 'mt_scope', - 'mt_test_date', - 'mt_request_date', - 'mt_result', - - 'pt_scope', - 'pt_test_date', - 'pt_request_date', - 'pt_result', - - 'pmi_scope', - 'pmi_test_date', - 'pmi_request_date', - - 'ferrite_scope', - 'ferrite_request_no', - -]; - - -if(!getisset("iso_number")) { - array_unshift($jointByLineTo, 'iso_number'); -} - -$editableColumns = [ - /* - 'fit_up_date', - 'welding_date', - - 'welder_1', - 'welder_2', - */ - - 'vt_request_date', - 'test_laboratory_vt', - 'pwht_date', - 'test_laboratory_pwht', - 'ht_request_date', - 'test_laboratory_ht', - 'rt_request_date', - 'test_laboratory_rt', - 'ut_test_date', - 'ut_request_date', - 'test_laboratory_ut', - 'ut_type', - 'pt_test_date', - 'test_laboratory_pt', - 'mt_test_date', - 'mt_request_date', - 'test_laboratory_mt', - 'pmi_test_date', - 'test_laboratory_pmi', - 'spool_release_date', - -]; - -$dateColumns = [ - 'fit_up_date', - 'welding_date', - 'rt_test_date', - 'ut_test_date', - 'pt_test_date', - 'pwht_date', - 'rt_request_date', - 'ut_request_date', - 'vt_request_date', - 'ht_request_date', - 'mt_request_date', - - -]; - -$selectDropdowns = [ - /* - 'welder_1', - 'welder_2', - 'vt_result', - */ - -]; - -$query = ""; -if(getisset("iso_number")) { - - $query = "&iso_number={$_GET['iso_number']}"; -} -if(getisset("spool_no")) { - - $query .= "&spool_no={$_GET['spool_no']}"; -} - -if(getisset("d1")) { - - $query .= "&d1={$_GET['d1']}&d2={$_GET['d2']}"; -} -?> - - - - - - -
-
- {{col("col-xl-3 col-lg-2 col-md-12 isometric","Isometric", 0, ['no-options'=>true])}} - {{e2("Iso Number")}} -
-
- - - - - -
- -
-
- {{e2("Welding Date")}} -
- - - -
- -
- - - -
-
-
- {{e2("NDT %")}} : {{$firstData->ndt_percent}} -
-
- {{e2("STE Subcontructer")}} : {{$firstData->contractor}} -
-
- {{e2("Project")}} : {{$firstData->project}} -
-
-
-
- {{e2("Design Area")}} : {{$firstData->design_area}} -
-
- {{e2("QTY of ISO")}} : {{$firstData->quantity_of_iso}} -
-
-
-
- {{e2("ISO Rev")}} : {{$firstData->iso_rev}} -
-
- {{e2("Fluid Group")}} : {{$firstData->fluid_group}} -
-
-
-
- {{e2("Service Category")}} : {{$firstData->service_category}} -
-
- {{e2("Painting Cycle")}} : {{$firstData->painting_cycle}} -
- -
-
-
- {{e2("PWHT")}} : {{$firstData->pwht}} - -
-
- {{e2("Progress")}}: -
{{$progress}}
-
-
- @include("admin.type.inc.manage-calc") - - - - - {{_col()}} - {{col("col-xl-9 col-lg-10 col-md-12 line-weld-date w-90","Line & Weld Date", 0, ['no-options'=>true])}} - @include("admin.type.manage-ndt.line-weld-date") - {{_col()}} - {{col("col-md-12","Joint by Line No $isoNumberTitle", 0, ['no-options'=>true])}} - @include("admin.type.manage-ndt.joint-by-line-no") - {{_col()}} -
-
diff --git a/resources/views/admin/type/manage-pwht.blade.php b/resources/views/admin/type/manage-pwht.blade.php deleted file mode 100644 index ab9062c..0000000 --- a/resources/views/admin/type/manage-pwht.blade.php +++ /dev/null @@ -1,523 +0,0 @@ -where("iso_number", "like", "%" . trim(get("iso_number")) . "%"); - $get = true; - - -} -if(!getesit("d1","")) { - $datas = $datas->whereDate("welding_date", ">=", get("d1")); - $datas = $datas->whereDate("welding_date", "<=", get("d2")); - $get = true; -} - -$naksWelders = db("naks_welders")->groupBy("welder_id")->whereNotNull("welder_id")->get(); - -if($get) { - $datas = $datas->get(); -} else { - $datas = $datas->paginate(20); -} - - - - -$neverWeldingDate = true; -foreach($datas AS $data) { - if($data->welding_date == "0000-00-00" || $data->welding_date == "") { - $progress = "On Going"; - $progress_type = "warning"; - } else { - $neverWeldingDate = false; - } -} - -if($neverWeldingDate) { - $progress = "Waiting"; - $progress_type = "danger"; -} -if($datas->count() != 0) { - $firstData = $datas[0]; - - if(!getesit("iso_number","")) { - $isoNumberTitle = "
LINE: {$firstData->iso_number}
"; - } -} - - - -//echo(implode("','",table_columns("weld_logs"))); -$columns = [ - 'id', - 'general_contractor', - 'contractor', - 'design_area', - 'line_specification', - 'line_number', - 'main_material', - 'main_nps', - 'fluid_code', - 'service_category', - 'fluid_group', - 'piping_class', - 'design_temperature_s', - 'design_pressure_mpa', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - 'painting_cycle', - 'external_finish_type', - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - - 'certificate_no', - 'wpq_report', - 'member_1', - 'material_1', - 'ru_material_group', - 'certificate_number_of_1', - 'heat_number_1', - 'nps', - 'thickness_by_asme_s_20_std', - 'outside_diameter_mm', - 'wall_thickness_mm', - '1_element_code', - 'member_2', - 'material_2', - 'ru_material_group2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps2', - 'thickness_by_asme_s_20_std2', - 'outsidediametermm', - 'wallthickness_mm', - '2_element_code', - 'ndt_percent', - 'vt_request', - 'vt_report', - 'date_of_vt', - 'test_laboratory_vt', - 'vt_result', - 'rt_scope', - 'rt_request', - 'rt_report', - 'rt_test_date', - 'test_laboratory_rt', - 'rt_result', - 'ut_scope', - 'ut_request', - 'ut_report', - 'ut_test_date', - 'test_laboratory_ut', - 'ut_result', - 'pt_scope', - 'pt_request', - 'pt_report', - 'pt_test_date', - 'test_laboratory_pt', - 'pt_result', - 'mt_scope', - 'mt_request', - 'mt_report', - 'mt_test_date', - 'test_laboratory_mt', - 'mt_result', - 'pmi_scope', - 'pmi_request', - 'no_of_testing_report', - 'pmi_test_date', - 'test_laboratory_pmi', - 'pmi_result', - 'pwht', - 'pwht_date', - 'of_pwht_report', - 'diagram_number_pwht', - 'test_laboratory_pwht', - 'nt_scope', - 'ht_request', - 'no_of_ht_hardnes_test', - 'ht_request_date', - 'test_laboratory_ht', - 'ht_result', - 'ferrite_scope', - 'ferrite_check_request', - 'no_of_ferrite_check', - 'date_of_ferrite_check', - 'test_laboratory_ferrite', - 'ferrite_result', - 'test_package', - 'test_pressure', - 'type_of_test', - 'date_test', - 'test_result', - 'real_welder_1', - 'real_welder_2', - 'ste_subcontructer' -]; - -$lineWeldDate = [ - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_joint', - 'type_of_welds', - 'welding_date', - 'test_package_no', - 'pwht', - 'pwht_date', - 'test_laboratory_pwht', - 'ht_request_date', - 'test_laboratory_ht', - 'ht_result', - 'remarks', - 'spool_release_date', -]; - - -$jointByLineTo = [ - 'id', - 'spool_number', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_joint', - 'type_of_welds', - 'welding_date', - 'welder_1', - 'welder_2', - 'member_no_1', - 'material_no_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'date_of_vt', - 'vt_result', - 'rt_scope', - 'rt_test_date', - 'rt_result', - 'ut_scope', - 'ut_test_date', - 'ut_result', - 'pt_scope', - 'pt_test_date', - 'pt_result', - 'mt_scope', - 'mt_result', - 'pmi_scope', - 'pmi_result', - 'pwht', - 'pwht_date', - 'ferrite_scope', - 'ferrite_result', -]; - - - -if(!getisset("iso_number")) { - array_unshift($jointByLineTo, 'iso_number'); -} - -$editableColumns = [ - 'vt_request_date', - 'test_laboratory_vt', - 'pwht_date', - 'test_laboratory_pwht', - 'ht_request_date', - 'test_laboratory_ht', - 'rt_request_date', - 'test_laboratory_rt', - 'ut_test_date', - 'ut_request_date', - 'test_laboratory_ut', - 'ut_type', - 'pt_test_date', - 'test_laboratory_pt', - 'mt_test_date', - 'mt_request_date', - 'test_laboratory_mt', - 'pmi_test_date', - 'test_laboratory_pmi', - 'spool_release_date', -]; - -$dateColumns = [ - 'fit_up_date', - 'welding_date', - 'rt_test_date', - 'ut_test_date', - 'pt_test_date', - 'pwht_date', - -]; - -$selectDropdowns = [ - /* - 'welder_1', - 'welder_2', - 'vt_result', - */ -]; -?> - - - - - -
-
- {{col("col-md-3","Isometric", 0, ['no-options'=>true])}} - {{e2("Iso Number")}} -
-
- - - -
- -
-
- {{e2("Welding Date")}} -
- - - -
- -
- - -
-
-
- {{e2("NDT %")}} : {{$firstData->ndt_percent}} -
-
- {{e2("STE Subcontructer")}} : {{$firstData->contractor}} -
-
- {{e2("Project")}} : {{$firstData->project}} -
-
-
-
- {{e2("Design Area")}} : {{$firstData->design_area}} -
-
- {{e2("QTY of ISO")}} : {{$firstData->quantity_of_iso}} -
-
-
-
- {{e2("ISO Rev")}} : {{$firstData->iso_rev}} -
-
- {{e2("Fluid Group")}} : {{$firstData->fluid_group}} -
-
-
-
- {{e2("Service Category")}} : {{$firstData->service_category}} -
-
- {{e2("Painting Cycle")}} : {{$firstData->painting_cycle}} -
- -
-
-
- {{e2("PWHT")}} : {{$firstData->pwht}} - -
-
- {{e2("Progress")}}: -
{{$progress}}
-
-
- @include("admin.type.inc.manage-calc") - - - - {{_col()}} - {{col("col-md-9","Line & Weld Date")}} - - - - - - - - - - - - - - - - - -
{{e2($spoolColumn)}}
- $spoolColumn)) { ?> - {{$data->$spoolColumn}} - - - -
- - - {{_col()}} - -get(); -$relationDatas['welder_1']['pattern'] = "[{welder_id}] {welder_name_en}"; -$relationDatas['welder_2']['pattern'] = "[{welder_id}] {welder_name_en}"; -$relationDatas['vt_result']['pattern'] = "{title}"; -$rowName = "jointByLineTo"; -$tableName = "weld_logs"; -?> - {{col("col-md-12","Joint by Line No $isoNumberTitle")}} -
- - - - - - - - - - - - - - - - - -
{{e2($column)}}
- - - - @include("components.columns.select-dropdown") - - - - - - - $jointColumn; - if(in_array($jointColumn, ['welder_1', 'welder_2'])) { - $resultData = get_welder_id($resultData); - } ?> - {{$resultData}} - - - - - -
-
- {{_col()}} -
-
- - - \ No newline at end of file diff --git a/resources/views/admin/type/manage-welding-old.blade.php b/resources/views/admin/type/manage-welding-old.blade.php deleted file mode 100644 index fe0b137..0000000 --- a/resources/views/admin/type/manage-welding-old.blade.php +++ /dev/null @@ -1,569 +0,0 @@ -where("iso_number", "like", "%" . trim(get("iso_number")) . "%"); - $get = true; - - -} -if(!getesit("d1","")) { - $datas = $datas->whereDate("welding_date", ">=", get("d1")); - $datas = $datas->whereDate("welding_date", "<=", get("d2")); - $get = true; -} - -$naksWelders = db("naks_welders")->groupBy("welder_id")->whereNotNull("welder_id")->get(); - -if($get) { - $datas = $datas->get(); -} else { - $datas = $datas->paginate(20); -} - - - - -$neverWeldingDate = true; -foreach($datas AS $data) { - if($data->welding_date == "0000-00-00" || $data->welding_date == "") { - $progress = "On Going"; - $progress_type = "warning"; - } else { - $neverWeldingDate = false; - } -} - -if($neverWeldingDate) { - $progress = "Waiting"; - $progress_type = "danger"; -} - -$firstData = $datas[0]; - -if(!getesit("iso_number","")) { - $isoNumberTitle = "
LINE: {$firstData->iso_number}
"; -} - - -//echo(implode("','",table_columns("weld_logs"))); -$columns = [ - 'id', - 'general_contractor', - 'contractor', - 'design_area', - 'line_specification', - 'line_number', - 'main_material', - 'main_nps', - 'fluid_code', - 'service_category', - 'fluid_group', - 'piping_class', - 'design_temperature_s', - 'design_pressure_mpa', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - 'painting_cycle', - 'external_finish_type', - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - - 'certificate_no', - 'wpq_report', - 'member_1', - 'material_1', - 'ru_material_group', - 'certificate_number_of_1', - 'heat_number_1', - 'nps', - 'thickness_by_asme_s_20_std', - 'outside_diameter_mm', - 'wall_thickness_mm', - '1_element_code', - 'member_2', - 'material_2', - 'ru_material_group2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps2', - 'thickness_by_asme_s_20_std2', - 'outsidediametermm', - 'wallthickness_mm', - '2_element_code', - 'ndt_percent', - 'vt_request', - 'vt_report', - 'date_of_vt', - 'test_laboratory_vt', - 'vt_result', - 'rt_scope', - 'rt_request', - 'rt_report', - 'rt_test_date', - 'test_laboratory_rt', - 'rt_result', - 'ut_scope', - 'ut_request', - 'ut_report', - 'ut_test_date', - 'test_laboratory_ut', - 'ut_result', - 'pt_scope', - 'pt_request', - 'pt_report', - 'pt_test_date', - 'test_laboratory_pt', - 'pt_result', - 'mt_scope', - 'mt_request', - 'mt_report', - 'mt_test_date', - 'test_laboratory_mt', - 'mt_result', - 'pmi_scope', - 'pmi_request', - 'no_of_testing_report', - 'pmi_test_date', - 'test_laboratory_pmi', - 'pmi_result', - 'pwht', - 'pwht_date', - 'of_pwht_report', - 'diagram_number_pwht', - 'test_laboratory_pwht', - 'nt_scope', - 'ht_request', - 'no_of_ht_hardnes_test', - 'ht_request_date', - 'test_laboratory_ht', - 'ht_result', - 'ferrite_scope', - 'ferrite_check_request', - 'no_of_ferrite_check', - 'date_of_ferrite_check', - 'test_laboratory_ferrite', - 'ferrite_result', - 'test_package', - 'test_pressure', - 'type_of_test', - 'date_test', - 'test_result', - 'real_welder_1', - 'real_welder_2', - 'ste_subcontructer' -]; - - - -/* -Spool number -No of the joint As per As Built survey -Type of joint -Type of welds -WPS № -Welding materials 1 -Welding materials 1 -Lot No -Welding materials 1 -Certificate No -Welding materials 2 -Welding materials 2 Lot No -Welding materials 2 -Certificate No -Welding materials 3 -Welding materials 3 Lot No -Welding materials 3 Certificate No -Test Package № -Remarks -NDT Release Date -Paint Status -Spool Weight -*/ -$lineWeldDate = [ - // 'spool_number', - // 'no_of_the_joint_as_per_as_built_survey', - //'type_of_joint', - //'type_of_welds', - 'no_of_the_joint_as_per_as_built_survey', - 'wps_no', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welding_materials_3', - 'welding_materials_3_lot_no', - 'welding_materials_3_certificate_no', - 'test_package_no', - 'remarks', - 'ndt_release_date', - 'paint_status', - 'spool_weight', -]; - -/* -Spool number -No of the joint As per As Built survey -Type of joint -Type of welds -Welding date -Welder 1 -Welder 2 -Fit-Up Date -Welding date -Mechanic Supervisor -Mechanic Supervisor Control Date -Welding Supervisor -Welding Supervisor Control Date -№1 Element Code -Member №1 -Material №1 -NPS -Thickness by ASME (S-20. STD…) -Outside Diameter. ,mm -Wall thickness mm -Certificate number of 1 -Heat number 1 -№2 Element Code -Member №2 -Material №2 -NPS2 -OutsideDiameter.(mm) -Wallthickness (mm) -Certificate number of 2 -Heat number 2 -*/ - -$jointByLineTo = [ - 'id', - 'spool_number', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_joint', - 'type_of_welds', - 'welding_date', - 'welder_1', - 'welder_2', - 'fit_up_date', - 'mechanic_supervisor', - 'mechanic_supervisor_control_date', - 'welding_supervisor', - 'welding_supervisor_control_date', - 'element_code_1', - 'pose_no_1', - 'member_no_1', - 'material_no_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'certificate_number_of_1', - 'heat_number_1', - 'element_code_2', - 'member_no_2', - 'material_no_2', - 'nps_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'certificate_number_of_2', - 'heat_number_2', -]; - - - -if(!getisset("iso_number")) { - array_unshift($jointByLineTo, 'iso_number'); -} - -$editableColumns = [ - 'fit_up_date', - 'welding_date', - 'mechanic_supervisor', - 'mechanic_supervisor_control_date', - 'welding_supervisor', - 'welding_supervisor_control_date', - 'welder_1', - 'welder_2', -]; - -$dateColumns = [ - 'fit_up_date', - 'welding_date', - 'mechanic_supervisor_control_date', - 'welding_supervisor_control_date', -]; - -?> - - - - - -
-
- {{col("col-md-3","Isometric", 0, ['no-options'=>true])}} - {{e2("Iso Number")}} -
-
- - - -
- -
-
- {{e2("Welding Date")}} -
- - - -
- -
- -
-
-
- {{e2("NDT %")}} : {{$firstData->ndt_percent}} -
-
- {{e2("STE Subcontructer")}} : {{$firstData->contractor}} -
-
- {{e2("Project")}} : {{$firstData->project}} -
-
-
-
- {{e2("Design Area")}} : {{$firstData->design_area}} -
-
- {{e2("QTY of ISO")}} : {{$firstData->quantity_of_iso}} -
-
-
-
- {{e2("ISO Rev")}} : {{$firstData->iso_rev}} -
-
- {{e2("Fluid Group")}} : {{$firstData->fluid_group}} -
-
-
-
- {{e2("Service Category")}} : {{$firstData->service_category}} -
-
- {{e2("Painting Cycle")}} : {{$firstData->painting_cycle}} -
- -
-
-
- {{e2("PWHT")}} : {{$firstData->pwht}} - -
-
- {{e2("Progress")}}: -
{{$progress}}
-
-
- - - {{_col()}} - {{col("col-md-9","Line & Weld Date")}} - - - - - - - - - - - - - - - - - -
{{e2($spoolColumn)}}
- $spoolColumn)) { ?> - {{$data->$spoolColumn}} - - - - - - {{$data->$spoolColumn}} - - - - - - -
- - - {{_col()}} - - - {{col("col-md-12","Joint by Line No $isoNumberTitle")}} -
- - - - - - - - - - - - - - - - - -
{{e2($column)}}
- - - - @include("components.columns.select-dropdown") - - - - - - - {{$data->$jointColumn}} - - - - - - -
-
- {{_col()}} -
-
- - - \ No newline at end of file diff --git a/resources/views/admin/type/manage-welding.blade.php b/resources/views/admin/type/manage-welding.blade.php deleted file mode 100644 index efe7191..0000000 --- a/resources/views/admin/type/manage-welding.blade.php +++ /dev/null @@ -1,474 +0,0 @@ -where("iso_number", "like", "%" . trim(get("iso_number")) . "%"); - $get = true; - - -} -if(!getesit("d1","")) { - $datas = $datas->whereDate("welding_date", ">=", get("d1")); - $datas = $datas->whereDate("welding_date", "<=", get("d2")); - $get = true; -} - -if(!getesit("spool_no","")) { - $datas = $datas->where("spool_number", trim(get("spool_no"))); - $get = true; -} - - - -$naksWelders = db("naks_welders")->groupBy("welder_id")->whereNotNull("welder_id")->get(); - -if($get) { - $datas = $datas->get(); -} else { - $datas = $datas->paginate(20); -} - - -$requiredFields = required_fields(); - -$neverWeldingDate = true; -foreach($datas AS $data) { - if($data->welding_date == "0000-00-00" || $data->welding_date == "") { - $progress = "Waiting"; - $progress_type = "danger"; - } else { - $neverWeldingDate = false; - } -} - -if($neverWeldingDate) { - $progress = "On Going"; - $progress_type = "warning"; -} -if($datas->count() != 0) { - $firstData = $datas[0]; - if(!getesit("iso_number","")) { - $isoNumberTitle = "
LINE: {$firstData->iso_number}
"; - } -} - - -$columns = [ - 'id', - 'general_contractor', - 'contractor', - 'design_area', - 'line_specification', - 'line_number', - 'main_material', - 'main_nps', - 'fluid_code', - 'service_category', - 'fluid_group', - 'piping_class', - 'design_temperature_s', - 'design_pressure_mpa', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - 'painting_cycle', - 'external_finish_type', - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - - 'certificate_no', - 'wpq_report', - 'member_1', - 'material_1', - 'ru_material_group', - 'certificate_number_of_1', - 'heat_number_1', - 'nps', - 'thickness_by_asme_s_20_std', - 'outside_diameter_mm', - 'wall_thickness_mm', - '1_element_code', - 'member_2', - 'material_2', - 'ru_material_group2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps2', - 'thickness_by_asme_s_20_std2', - 'outsidediametermm', - 'wallthickness_mm', - '2_element_code', - 'ndt_percent', - 'vt_scope', - 'vt_request_no', - 'vt_report', - 'date_of_vt', - 'vt_request_date', - 'test_laboratory_vt', - 'vt_result', - 'rt_scope', - 'rt_request_no', - 'rt_report', - 'rt_test_date', - 'rt_request_date', - 'test_laboratory_rt', - 'rt_result', - 'ut_scope', - 'ut_request_no', - 'ut_report', - 'ut_test_date', - 'ut_request_date', - 'test_laboratory_ut', - 'ut_result', - 'ut_type', - 'pt_scope', - 'pt_request_no', - 'pt_report', - 'pt_test_date', - 'pt_request_date', - 'test_laboratory_pt', - 'pt_result', - 'mt_scope', - 'mt_request_no', - 'mt_report', - 'mt_test_date', - 'mt_request_date', - 'test_laboratory_mt', - 'mt_result', - 'pmi_scope', - 'pmi_request_no', - 'pmi_report', - 'no_of_testing_report', - 'pmi_test_date', - 'pmi_request_date', - 'test_laboratory_pmi', - 'pmi_result', - 'nde', - 'group_no', - 'pwht', - 'pwht_date', - 'of_pwht_report', - 'diagram_number_pwht', - 'test_laboratory_pwht', - 'nt_scope', - 'ht_request', - 'no_of_ht_hardnes_test', - 'ht_request_date', - 'test_laboratory_ht', - 'ht_result', - 'ferrite_scope', - 'ferrite_check_request', - 'no_of_ferrite_check', - 'date_of_ferrite_check', - 'test_laboratory_ferrite', - 'ferrite_result', - 'test_package', - 'test_pressure', - 'type_of_test', - 'date_test', - 'test_result', - 'real_welder_1', - 'real_welder_2', - 'ste_subcontructer' -]; - -$lineWeldDate = [ - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_joint', - 'type_of_welds', - 'welding_date', - 'spool_number', - 'welder_1', - 'welder_2', - 'outside_diameter_1', - 'wall_thickness_1', - 'outside_diameter_2', - 'wall_thickness_2', - 'vt_request_date', - 'test_laboratory_vt', - 'pwht_date', - 'test_laboratory_pwht', - 'ht_request_date', - 'test_laboratory_ht', - 'rt_request_date', - 'test_laboratory_rt', - 'ut_test_date', - 'ut_request_date', - 'test_laboratory_ut', - 'ut_type', - 'pt_test_date', - 'test_laboratory_pt', - 'mt_test_date', - 'mt_request_date', - 'test_laboratory_mt', - 'pmi_test_date', - 'test_laboratory_pmi', - 'spool_release_date', -]; - - -$jointByLineTo = [ - 'id', - 'spool_number', - 'test_package_no', - 'no_of_the_joint_as_per_as_built_survey', - - 'type_of_joint', - 'type_of_welds', - 'welding_date', - 'welder_1', - 'welder_2', - 'member_no_1', - 'material_no_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'member_no_2', - 'material_no_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'date_of_vt', - 'vt_result', - - 'rt_scope', - 'rt_test_date', - 'rt_request_date', - 'rt_result', - - 'ut_scope', - 'ut_test_date', - 'ut_request_date', - 'ut_result', - - 'mt_scope', - 'mt_test_date', - 'mt_request_date', - 'mt_result', - - 'pt_scope', - 'pt_test_date', - 'pt_request_date', - 'pt_result', - - 'pmi_scope', - 'pmi_test_date', - 'pmi_request_date', - - 'ferrite_scope', - 'ferrite_request_no', - -]; - - -if(!getisset("iso_number")) { - array_unshift($jointByLineTo, 'iso_number'); -} - -$editableColumns = [ - /* - 'fit_up_date', - 'welding_date', - - 'welder_1', - 'welder_2', - */ - - 'vt_request_date', - 'test_laboratory_vt', - 'pwht_date', - 'test_laboratory_pwht', - 'ht_request_date', - 'test_laboratory_ht', - 'rt_request_date', - 'test_laboratory_rt', - 'ut_test_date', - 'ut_request_date', - 'test_laboratory_ut', - 'ut_type', - 'pt_test_date', - 'test_laboratory_pt', - 'mt_test_date', - 'mt_request_date', - 'test_laboratory_mt', - 'pmi_test_date', - 'test_laboratory_pmi', - 'spool_release_date', - -]; - -$dateColumns = [ - 'fit_up_date', - 'welding_date', - 'rt_test_date', - 'ut_test_date', - 'pt_test_date', - 'pwht_date', - 'rt_request_date', - 'ut_request_date', - 'vt_request_date', - 'ht_request_date', - 'mt_request_date', - - -]; - -$selectDropdowns = [ - /* - 'welder_1', - 'welder_2', - 'vt_result', - */ - -]; - -$query = ""; -if(getisset("iso_number")) { - - $query = "&iso_number={$_GET['iso_number']}"; -} -if(getisset("spool_no")) { - - $query .= "&spool_no={$_GET['spool_no']}"; -} - -if(getisset("d1")) { - - $query .= "&d1={$_GET['d1']}&d2={$_GET['d2']}"; -} -?> - - - - - - -
-
- {{col("col-xl-3 col-lg-2 col-md-12 isometric","Isometric", 0, ['no-options'=>true])}} - {{e2("Iso Number")}} -
-
- - - - - -
- -
-
- {{e2("Welding Date")}} -
- - - -
- -
- - - -
-
-
- {{e2("NDT %")}} : {{$firstData->ndt_percent}} -
-
- {{e2("STE Subcontructer")}} : {{$firstData->ste_subcontractor}} -
-
- {{e2("Project")}} : {{$firstData->project}} -
-
-
-
- {{e2("Design Area")}} : {{$firstData->design_area}} -
-
- {{e2("QTY of ISO")}} : {{$firstData->quantity_of_iso}} -
-
-
-
- {{e2("ISO Rev")}} : {{$firstData->iso_rev}} -
-
- {{e2("Fluid Group")}} : {{$firstData->fluid_group}} -
-
-
-
- {{e2("Service Category")}} : {{$firstData->service_category}} -
-
- {{e2("Painting Cycle")}} : {{$firstData->painting_cycle}} -
- -
-
-
- {{e2("PWHT")}} : {{$firstData->pwht}} - -
-
- {{e2("Progress")}}: -
{{$progress}}
-
-
- - - - - {{_col()}} - {{col("col-xl-9 col-lg-10 col-md-12 line-weld-date w-90","Line & Weld Date", 0, ['no-options'=>true])}} - @include("admin.type.manage-welding.line-weld-date") - {{_col()}} - {{col("col-md-12","Joint by Line No $isoNumberTitle", 0, ['no-options'=>true])}} - @include("admin.type.manage-welding.joint-by-line-no") - {{_col()}} -
-
diff --git a/resources/views/admin/type/material-performance.blade.php b/resources/views/admin/type/material-performance.blade.php deleted file mode 100644 index a27777c..0000000 --- a/resources/views/admin/type/material-performance.blade.php +++ /dev/null @@ -1,1223 +0,0 @@ - - - - - - - - - -
-
- - -
-
-
- Select sections to export - -
- - -
-
-
-
- {{col("col-md-6", "Welded Supports Sum")}} -
-
- -

Loading data...

-
-
- - {{_col()}} - {{col("col-md-6", "Welded Count Sum")}} -
-
- -

Loading data...

-
-
- - {{_col()}} - - {{col("col-md-12", "Track Installation and Weight with Support Log")}} -
-
- -

Loading data...

-
-
- - {{_col()}} - - {{col("col-md-6", "Track Paint System - Spool Based")}} -
-
- -

Loading data...

-
-
- - {{_col()}} - {{col("col-md-6", "Track Paint System - Joint Based (Touch-up)")}} -
-
- -

Loading data...

-
-
- - {{_col()}} -
-
\ No newline at end of file diff --git a/resources/views/admin/type/material-planing.blade.php b/resources/views/admin/type/material-planing.blade.php deleted file mode 100644 index 34673e7..0000000 --- a/resources/views/admin/type/material-planing.blade.php +++ /dev/null @@ -1,56 +0,0 @@ - '📦', - 'Packing List Detail' => '📋', - 'Current Material Status' => '📊', -]; -?> - - - -
-
- -
-
- - @include("admin.type.material-planing." . get("t")) - -
-
-
- -

{{e2("Material Planning System")}}

-

{{e2("Please select a tab from above to continue")}}

-
-
-
- -
-
-
-
\ No newline at end of file diff --git a/resources/views/admin/type/mt-log.blade.php b/resources/views/admin/type/mt-log.blade.php deleted file mode 100644 index 681f6b1..0000000 --- a/resources/views/admin/type/mt-log.blade.php +++ /dev/null @@ -1,139 +0,0 @@ -paginate(setting('row_count')); -$tableName = "magnetic_tests"; - -$tableType = "datagrid"; - -$relationDatas = [ - 'report_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'mt_result' => [ - 'datas' => db("results")->get(), - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ], -]; -$blockGroup = [ - 'Info' => [ - 'report_file', - 'contractor', - ], - 'Invoice' => [ - 'invoice_number', - 'invoice_date', - ], - 'Laboratory' => [ - 'test_laboratory_mt', - - ], - 'Project' => [ - 'project', - - ], - 'Design' => [ - 'design_area', - 'line_specification', - 'line_number', - 'fluid_code', - 'service_category', - 'fluid_group', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - - ], - 'ISO Info' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_welds', - ], - 'Welding Info' => [ - 'welding_date', - 'wps_no', - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welder_1', - 'welder_2', - ], - 'Element Info' => [ - 'certificate_no_1', - 'wpq_report_1', - 'certificate_no_2', - 'wpq_report_2', - 'member_no_1', - 'material_no_1', - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'element_code_1', - 'member_no_2', - 'material_no_2', - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'element_code_2', - ], - 'MT Info' => [ - 'mt_scope', - 'mt_request_no', - 'mt_request_date', - 'mt_report', - 'mt_test_date', - 'mt_result', - 'control_standart', - 'defects', - 'tester_name', - 'real_welder_1', - 'real_welder_2', - - ], - - - - -]; - - -$firstUploadFolder = '004_QA/0003_MT/'; -$firstUploadTitle = 'Upload PDF'; -$uploadPermissionKey = 'mt_log_upload_permission'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/mto.blade.php b/resources/views/admin/type/mto.blade.php deleted file mode 100644 index 2cf7854..0000000 --- a/resources/views/admin/type/mto.blade.php +++ /dev/null @@ -1,283 +0,0 @@ -groupBy("iso_number")->get(); - - - -$relationDatas = [ - /* - 'line' => [ - 'type' => 'select-dropdown', - 'table' => 'weld_maps', - 'column' => 'iso_number', - 'affected' => [ - 'rev' => '{iso_rev}', - 'component_code' => '{no1_element_code}', - 'piping_class' => '{category} + {fluid_group}', - 'description_en' => '{member_no_1}', - 'description_ru' => '{member_no_2}', - 'dia_inch_1' => '{nps}', - 'odmm_1' => '{outside_diameter_mm}', - 'schedule_1' => '{thickness_by_asme}', - 'thicknessmm_1' => '{wall_thickness_mm}', - ], - ], - - */ - /* - 'line' => [ - 'datas' => $weld_maps, - 'pattern' => '{iso_number}', - 'type' => 'select-dropdown', - 'affected' => [ - 'rev' => '{iso_rev}', - 'component_code' => '{no1_element_code}', - 'piping_class' => '{category} + {fluid_group}', - 'description_en' => '{member_no_1}', - 'description_ru' => '{member_no_2}', - 'dia_inch_1' => '{nps}', - 'odmm_1' => '{outside_diameter_mm}', - 'schedule_1' => '{thickness_by_asme}', - 'thicknessmm_1' => '{wall_thickness_mm}', - ], - ], - */ - - 'discipline' => [ - 'datas' => db("disciplines")->get(), - 'pattern' => '{discipline_title}', - 'type' => 'select-dropdown' - ], - 'designer' => [ - 'datas' => db("subcontractors")->where("job_description", "ENGINEERING")->get(), - 'pattern' => '{company_name_en}', - 'type' => 'select-dropdown' - ], - - - -]; -$topButtons = []; -$syncPermission = setting('mto_sync_permission'); -$allowedLevels = is_string($syncPermission) ? j($syncPermission) : []; -$hasSyncPermission = is_array($allowedLevels) && in_array(u()->level, $allowedLevels); - -if($hasSyncPermission) { - $topButtons[] = [ - 'href' => '?sync', - 'html' => ' ' . __("Sync Data From Line List") - ]; -} - - -?> - - - - -
-
- where("id",">", $lastId)->take(1000)->get(); - - $count = 0; - $processedKeys = []; - - bilgi("Started ID :Id", "success", ['Id' => $lastId]); - - foreach($weldMaps AS $weldMap) { - - Cache::put($cachePrefix, $weldMap->id); - - $uniqueKey = $weldMap->line_number . '_' . $weldMap->element_code_1; - if(in_array($uniqueKey, $processedKeys)) { - continue; - } - $processedKeys[] = $uniqueKey; - - $data = [ - //'project' => , - 'line' => $weldMap->line_number, - 'rev' => $weldMap->iso_rev, - 'component_code_id' => $weldMap->element_code_1, - // 'longdescription' , - 'description_en' => $weldMap->member_no_1, - // 'description_ru', - 'manufacturing_standard' => $weldMap->wall_thickness_1, - 'material' => $weldMap->main_material, - // 'material_quality_standard', - // 'pose_number' => $weldMap->pose_no_1, - // 'quantity' => $weldMap->, - 'dia_inch_1' => $weldMap->nps_1, - 'dn_1' => $weldMap->wall_thickness_1, - 'odmm_1' => $weldMap->outside_diameter_1, - 'schedule_1' => $weldMap->thickness_by_asme_1, - 'thicknessmm_1' => $weldMap->wall_thickness_1, - 'diainch_2' => $weldMap->nps_2, - 'dn_2' => $weldMap->wall_thickness_1, - 'odmm_2' => $weldMap->outside_diameter_2, - 'schedule_2' => $weldMap->thickness_by_asme_2, - 'thicknessmm_2' => $weldMap->wall_thickness_2, - // 'pn_mpa' => $weldMap->wall_thickness_1, - // 'remarks' - ]; - - MTO::updateOrCreate([ - 'line' => $weldMap->line_number, - 'component_code_id' => $weldMap->element_code_1 - ], $data); - - $count++; - } - - bilgi(":count Data has been sync from Weld Map", - "success", - ['count' => $count] - ); - } - -} - - -$blockGroup = [ - 'General Information' => [ - 'project', - 'discipline', - 'designer', - 'line', - 'drawing_number', - 'rev', - 'component_code_id', - 'longdescription', - 'description_en', - 'description_ru', - 'manufacturing_standard', - ], - 'Material Information' => [ - 'material', - 'material_quality_standard', - 'quantity', - 'dia_inch_1', - 'dn_1', - 'odmm_1', - 'schedule_1', - 'thicknessmm_1', - 'diainch_2', - 'dn_2', - 'odmm_2', - 'schedule_2', - 'thicknessmm_2', - 'pn_mpa', - 'weight', - 'total_weight', - 'remarks', - ], -]; - -$listDatas = MTO::orderBy("id","DESC")->paginate(setting('row_count')); - ?> - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/naks-consumables.blade.php b/resources/views/admin/type/naks-consumables.blade.php deleted file mode 100644 index 4d79950..0000000 --- a/resources/views/admin/type/naks-consumables.blade.php +++ /dev/null @@ -1,272 +0,0 @@ -paginate(setting('row_count')); -$tableName = "naks_consumables"; - -$weldingConsumables = db("welding_consumables")->get(); -$materials = db("materials"); - -$relationDatas = [ - 'type_of_consumable' => [ - 'datas' => db("type_of_consumables")->get(), - 'pattern' => '{title_en} / {title_ru}', - 'type' => 'select-dropdown' - ], - 'brand' => [ - 'datas' => db("welding_materials_brends")->groupBy("title")->get(), - 'pattern' => '{title}', - 'type' => 'select-dropdown', - 'filter-columns' => ['product_name'] - ], - 'product_name' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{brend}', - 'type' => 'select-dropdown', - 'filter-columns' => ['aws_classification'], - 'affected' => [ - 'aws_classification' => "{aws_class} {aws_specification}" - ] - ], - /* - 'aws_classification' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{aws_class} {aws_specification}', - 'type' => 'select-dropdown', - - ], - */ - 'group_of_base_material' => [ - 'datas' => $materials->groupBy("short_name")->get(), - 'pattern' => '{short_name}', - 'type' => 'select-dropdown', - 'filter-columns' => ['base_material'] - ], - 'naks_tech_group' => [ - 'datas' => db("hazard_classes")->groupBy("category_serial_number")->get(), - 'pattern' => '{category_serial_number}', - 'type' => 'multiple-choice' - ], - 'base_material' => [ - 'datas' => $materials->groupBy("steel_grade")->get(), - 'pattern' => '{steel_grade}', - 'type' => 'multiple-choice' - ], - 'naks_technology' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'inspection_test_report_download' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'icm_akt_no_download' => [ - 'type' => 'link-search', - 'html' => '' - ], - - -]; - -$blockGroup = - [ - 'Download' => [ - 'naks_technology', - 'inspection_test_report_download', - 'icm_akt_no_download', - ], - 'General Information' => [ - 'source_project', - 'type_of_consumable', - 'brand', - 'product_name', - 'aws_classification', - ], - 'Material' => [ - 'diameter', - 'group_of_base_material', - 'base_material', - 'qty', - 'unit', - 'batch_number', - 'naks_certificate_no', - 'naks_certificate_date', - 'naks_valid_date', - 'naks_tech_group', - - ], - 'Certification Info' => [ - 'inspection_test_report', - 'inspection_certificate_standart', - 'certification_date', - 'certification_qty', - 'icm_inspection_status', - 'icm_rfi_no', - 'icm_akt_no', - 'icm_akt_date', - 'remarks', - ], - ]; -/* - $prependColumns = [ - 'Naks Technology' => [ - 'type' => 'link-search', - 'path' => '003_Welding_Database/0003_Naks_Consumables/', - 'pattern' => "*{naks_certificate_no}*.pdf", - 'html' => '' - ], - 'Inspection Test Report' => [ - 'type' => 'link-search', - 'path' => '003_Welding_Database/0003_Naks_Consumables/', - 'pattern' => "*{{inspection_test_report},{batch_number}}*.pdf", - 'html' => '' - ] - ]; - */ - $firstUploadFolder = "003_Welding_Database/0003_Naks_Consumables"; - $firstUploadTitle = "Upload Naks Tech or Inspection Test Report Document"; - - $secondUploadFolder = "003_Welding_Database/0003_Naks_Consumables"; - $secondUploadTitle = "Upload ICM Akt No Document"; - - $dataGridOptions = " - onToolbarPreparing: function(e) { - var toolbarItems = e.toolbarOptions.items; - - // Source Project Dropdown Filter - toolbarItems.unshift({ - location: 'before', - widget: 'dxSelectBox', - options: { - width: 200, - placeholder: 'Source Project', - showClearButton: true, - dataSource: { - store: { - type: 'array', - data: " . json_encode( - array_merge( - [['value' => '__this_project__', 'text' => '📍 This Project']], - DB::table('naks_consumables') - ->whereNotNull('source_project') - ->where('source_project', '!=', '') - ->groupBy('source_project') - ->pluck('source_project') - ->map(function($item) { - return ['value' => $item, 'text' => $item]; - }) - ->toArray() - ) - ) . ", - key: 'value' - } - }, - displayExpr: 'text', - valueExpr: 'value', - onValueChanged: function(args) { - if (args.value === '__this_project__') { - e.component.filter([['source_project', '=', null], 'or', ['source_project', '=', '']]); - } else if (args.value) { - e.component.filter(['source_project', '=', args.value]); - } else { - e.component.clearFilter('dataSource'); - } - } - } - }); - - // All Button - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'All', - icon: 'refresh', - stylingMode: 'text', - onClick: function() { - e.component.clearFilter(); - } - } - }); - }, - "; - -?> - - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/naks-technology.blade.php b/resources/views/admin/type/naks-technology.blade.php deleted file mode 100644 index 0c0d282..0000000 --- a/resources/views/admin/type/naks-technology.blade.php +++ /dev/null @@ -1,519 +0,0 @@ -where(function($query) use($get) { - foreach($get AS $column => $values) { - $query->whereIn($column, $values); - } - - }); -} -$listDatas = $listDatas->paginate(setting('row_count')); -$tableName = "naks_certificates"; - -$materials = db('materials')->groupBy("ru_group")->get(); -$jointTypes = db("joint_types")->get(); -$jointViews = db("joint_views")->get(); -$weldingPositions = db("welding_positions")->get(); - -$tableDifferentValues = table_different_values($tableName); - -//$recordedDatas = recorded_data($tableName); - -$relationDatas = [ - 'download' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'short_number' => [ - 'datas' => db('naks_centers')->get(), - 'pattern' => '{center_no}', - 'type' => 'select-dropdown', - 'affected' => [ - 'short_name' => '{center_name}', - ] - ], - 'welding_method' => [ - 'table' => 'welding_methods', - 'datas' => db('welding_methods')->whereNotIn("ru_short_name",['*'])->get(), - 'value' => 'ru_short_name', - 'text' => ['ru_short_name'], - 'type' => 'select', - ], - 'mat_group_1' => [ - 'datas' => $materials, - 'pattern' => '{ru_group}-{short_name}', - 'type' => 'select-dropdown' - ], - 'mat_group_2' => [ - 'datas' => $materials, - 'pattern' => '{ru_group}-{short_name}', - 'type' => 'select-dropdown' - ], - 'welding_consumable' => [ - 'datas' => db("welding_consumables")->get(), - 'pattern' => '{brend}', - 'type' => 'multiple-choice' - ], - 'technology_category' => [ - 'datas' => db("hazard_classes")->groupBy("serial_number")->get(), - 'pattern' => '{serial_number}', - 'type' => 'select-dropdown' - ], - 'work_type' => [ - 'datas' => db("work_types")->get(), - 'pattern' => '{title_en}', - 'type' => 'select-dropdown' - ], - 'performed_works_type' => [ - 'datas' => db('performed_work_types')->get(), - 'pattern' => '{title}', - 'type' => 'multiple-choice' - ], - 'joint_type' => [ - 'datas' => $jointTypes, - 'pattern' => '{short_name_ru}', - 'type' => 'select-dropdown', - 'filter-columns' => [ - 'connection_type' - ], - 'affected' => [ - 'connection_type' => '{naks_name}', - ] - ], - 'joint_view' => [ - 'datas' => $jointViews, - 'pattern' => '{short_name_ru}', - 'type' => 'multiple-choice' - ], - 'connection_type' => [ - 'datas' => $jointTypes, - 'pattern' => '{naks_name}', - 'type' => 'multiple-choice' - ], - - 'electrode_coating' => [ - 'datas' => db('electrode_coatings')->get(), - 'pattern' => '{short_name_ru}', - 'type' => 'multiple-choice', - 'disabled' => [ - 'column' => 'welding_method', - 'type' => '!=', - 'value' => 'РД', - ], - ], - 'welding_equipment' => [ - 'datas' => db("welding_machine_types")->get(), - 'pattern' => '{code}', - 'type' => 'multiple-choice' - ], - 'pwht' => [ - 'values' => [ - 'YES', - 'NO', - ], - 'type' => 'manuel-select' - ], - 'pre_heating' => [ - 'values' => [ - 'YES', - 'NO', - ], - 'type' => 'manuel-select' - ], - 'position' => [ - 'datas' => $weldingPositions, - 'pattern' => '{gost}', - 'type' => 'multiple-choice', - 'seperator' => ';' - ], -]; -/* -$prependColumns = [ - 'Download' => [ - 'type' => 'link-search', - 'path' => '003_Welding_Database/0000_Naks Technology/', - 'pattern' => "{short_number}*{certificate_no}*.pdf", - 'html' => '' - ], - - 'Certificate No' => [ - 'type' => 'text', - 'pattern' => "{short_number}-{certificate_no}" - ], -]; -*/ - -$blockGroup = [ - 'General Information' => [ - // 'source_project', - 'download', - 'short_number', - 'certificate_no', - 'short_name', - 'valid_from', - 'valid_to', - 'welding_method', - 'mat_group_1', - 'mat_group_2', - 'welding_consumable', - 'technology_category', - 'work_type', - - ], - 'Base Material' => [ - 'min_dia', - 'max_dia', - 'min_dia2', - 'max_dia2', - 'min_thick', - 'max_thick', - 'min_thick2', - 'max_thick2', - 'joint_type', - 'pwht', - 'connection_type', - 'joint_view', - 'angle_type', - 'position', - 'pre_heating', - 'shielding_gas', - 'electrode_coating', - - ], - 'Result' => [ - 'welding_equipment', - 'performed_works_type', - 'remarks', - - ] - -]; - -?> - - - - -
-
- '__this_project__', 'text' => '📍 This Project']], - DB::table('naks_certificates') - ->whereNotNull('source_project') - ->where('source_project', '!=', '') - ->groupBy('source_project') - ->pluck('source_project') - ->map(function($item) { - return ['value' => $item, 'text' => $item]; - }) - ->toArray() - ) - ) . ", - key: 'value' - } - }, - displayExpr: 'text', - valueExpr: 'value', - onValueChanged: function(args) { - if (args.value === '__this_project__') { - e.component.filter([['source_project', '=', null], 'or', ['source_project', '=', '']]); - } else if (args.value) { - e.component.filter(['source_project', '=', args.value]); - } else { - e.component.clearFilter('dataSource'); - } - } - } - }); - - // Temizle / Tümü - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'All', - icon: 'refresh', - stylingMode: 'text', - onClick: function() { - e.component.clearFilter(); - } - } - }); - - // Süresi Dolmayanlar (Geçerli) - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'Valid', - icon: 'check', - type: 'success', - stylingMode: 'contained', - onClick: function() { - e.component.filter(['valid_to', '>=', today]); - } - } - }); - - // Süresi Dolanlar - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'Expired', - icon: 'remove', - type: 'danger', - stylingMode: 'contained', - onClick: function() { - e.component.filter(['valid_to', '<', today]); - } - } - }); - - // Reset View Button (Mevcut butonu korumak için tekrar ekliyoruz) - toolbarItems.push({ - location: 'after', - widget: 'dxButton', - options: { - icon: 'refresh', - text: 'Reset View', - hint: 'Reset View', - onClick: function () { - localStorage.removeItem(storageKey); - location.reload(); - } - } - }); - }, - "; - ?> - @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/naks-welder.blade.php b/resources/views/admin/type/naks-welder.blade.php deleted file mode 100644 index a779817..0000000 --- a/resources/views/admin/type/naks-welder.blade.php +++ /dev/null @@ -1,335 +0,0 @@ -paginate(setting('row_count')); -$tableName = "naks_welders"; -$users = db("users")->whereIn("level", ['Welder', 'Engineer'])->get(); -$weldingMethods = db("welding_methods")->whereNotIn('ru_short_name',['*'])->get(); -$productType = db("product_types")->get(); -$jointType = db("joint_types")->get(); -$hazardClasses = db("hazard_classes")->get(); -$materials = db("materials")->whereNotIn("ru_group", ['*'])->groupBy("ru_group")->get("ru_group"); -$mainMaterials = db("materials")->whereNotIn("main_material", ['*'])->groupBy("main_material")->get("main_material"); -$weldingPositions = db("welding_positions")->get(); -$subcontractors = db("subcontractors")->get(); - - -$blockGroup = [ - 'General Information' => [ - 'source_project', - 'download', - 'user_id', - 'welder_name_ru', - 'welder_name_en', - 'year_of_birth', - 'company', - 'qualitification_category', - 'work_experience', - 'welder_id', - 'process', - 'component', - 'weld_type', - 'naks_certificate_no', - 'period_of_validity', - 'group_of_technical_device', - ], - -]; - -for($k=1;$k<=4;$k++) { - $blockGroup['Material ' . $k] = [ - 'material_' . $k, - 'diameter_min_' . $k, - 'diameter_max_' . $k, - 'min_thick_' . $k, - 'max_thick_' . $k, - ]; - $columnRedesign['material-' . $k]['class'] = "col-md-6"; - $columnRedesign['material_' . $k]['class'] = "col-12"; - $columnRedesign['material-' . $k]['color'] = 10; - $columnRedesign['material-' . $k]['border'] = true; - $columnRedesign['material-' . $k]['content-class'] = "bg-gray"; -} - -$blockGroup['Result'] = [ - 'welding_position', - 'order_no', - 'date', -]; - -$columnRedesign['result']['content-class'] = "bg-white"; -$columnRedesign['result']['color'] = 19; - -$columnRedesign['general-information']['class'] = "col-md-12"; -$columnRedesign['general-information']['color'] = 30; -$columnRedesign['general-information']['border'] = true; - - -$material_group_test_pieces = db("material_group_test_pieces") -->get("provision_value") -->pluck("provision_value"); - -$result = []; -foreach ($material_group_test_pieces as $piece) { - $items = explode(',', $piece); - foreach ($items as $item) { - $result[] = (object) ['ru_group' => $item]; // Nesneye dönüştür - } -} - -// $materials'ı nesnelere dönüştür ve birleştir -$materialsArray = $materials->toArray(); -$materialsArray = array_map(fn($material) => (object) $material, $materialsArray); - -$mergedMaterials = array_merge($materialsArray, $result); - -// Benzersiz öğeleri bul -$uniqueMaterials = []; -foreach ($mergedMaterials as $material) { - if (!in_array($material, $uniqueMaterials, true)) { - $uniqueMaterials[] = $material; - } -} - -// Sonucu Object olarak döndür -$materials2 = $uniqueMaterials; - - - - -$relationDatas = [ - 'download' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'user_id' => [ - 'table' => 'users', - 'datas' => $users, - 'value' => 'id', - 'text' => ['registration_no', 'name'], - 'type' => 'select', - 'affected' => [ - 'year_of_birth' => '{date_of_birth}', - 'welder_name_ru' => '{name_ru}', - 'welder_name_en' => '{name}', - 'company' => '{subcontructer}', - 'qualitification_category' => '{qualitification}', - ] - ], - 'process' => [ - 'datas' => $weldingMethods, - 'pattern' => '{ru_short_name}', - 'type' => 'select-dropdown' - ], - 'component' => [ - 'datas' => $productType, - 'pattern' => '{short_name_ru}', - 'type' => 'multiple-choice' - ], - - 'weld_type' => [ - 'datas' => $jointType, - 'pattern' => '{short_name_ru} {short_name_en}', - 'type' => 'multiple-choice' - ], - 'group_of_technical_device' => [ - 'datas' => $hazardClasses, - 'pattern' => '{serial_number}', - 'type' => 'multiple-choice' - ], - 'material_1' => [ - 'datas' => $mainMaterials, - 'pattern' => '{main_material}', - 'type' => 'select-dropdown' - ], - 'material_2' => [ - 'datas' => $mainMaterials, - 'pattern' => '{main_material}', - 'type' => 'select-dropdown' - ], - 'material_3' => [ - 'datas' => $mainMaterials, - 'pattern' => '{main_material}', - 'type' => 'select-dropdown' - ], - 'material_4' => [ - 'datas' => $mainMaterials, - 'pattern' => '{main_material}', - 'type' => 'multiple-choice' - ], - 'welding_position' => [ - 'datas' => $weldingPositions, - 'pattern' => '{gost}/{en}', - 'type' => 'multiple-choice' - ], - - 'company' => [ - 'datas' => $subcontractors, - 'pattern' => '{company_name_en}', - 'type' => 'multiple-choice' - ], - - 'status' => [ - 'values' => [ - 'Shop Active', - 'Field Active', - 'Transfer to', - 'Black list', - 'Exit' - ], - 'type' => 'manuel-select' - ], - - - - -]; -/* -$prependColumns = [ - 'Download' => [ - 'type' => 'link-search', - 'path' => '003_Welding_Database/0001_Naks_Welder/', - 'pattern' => "*{naks_certificate_no}*{welder_id}*.pdf", - 'html' => '' - ], - -]; -*/ - -$firstUploadFolder = "003_Welding_Database/0001_Naks_Welder"; -$firstUploadTitle = "Upload Naks Welder Document"; - -$dataGridOptions = " -onToolbarPreparing: function(e) { - var toolbarItems = e.toolbarOptions.items; - var today = new Date(); - today.setHours(0,0,0,0); - - // Source Project Dropdown Filter - toolbarItems.unshift({ - location: 'before', - widget: 'dxSelectBox', - options: { - width: 200, - placeholder: 'Source Project', - showClearButton: true, - dataSource: { - store: { - type: 'array', - data: " . json_encode( - array_merge( - [['value' => '__this_project__', 'text' => '📍 This Project']], - DB::table('naks_welders') - ->whereNotNull('source_project') - ->where('source_project', '!=', '') - ->groupBy('source_project') - ->pluck('source_project') - ->map(function($item) { - return ['value' => $item, 'text' => $item]; - }) - ->toArray() - ) - ) . ", - key: 'value' - } - }, - displayExpr: 'text', - valueExpr: 'value', - onValueChanged: function(args) { - if (args.value === '__this_project__') { - e.component.filter([['source_project', '=', null], 'or', ['source_project', '=', '']]); - } else if (args.value) { - e.component.filter(['source_project', '=', args.value]); - } else { - e.component.clearFilter('dataSource'); - } - } - } - }); - - // All Button - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'All', - icon: 'refresh', - stylingMode: 'text', - onClick: function() { - e.component.clearFilter(); - } - } - }); -}, -"; -?> - - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/naks-welding-equipments.blade.php b/resources/views/admin/type/naks-welding-equipments.blade.php deleted file mode 100644 index 62fbf4d..0000000 --- a/resources/views/admin/type/naks-welding-equipments.blade.php +++ /dev/null @@ -1,235 +0,0 @@ -paginate(setting('row_count')); -$tableName = "welding_equipment"; - -$relationDatas = [ - 'download' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'working_status' => [ - 'values' => [ - 'Working', - 'Attestation waiting', - 'Repair', - 'Out of use', - ], - 'type' => 'manuel-select' - ], - 'groups_of_technical_devices' => [ - 'datas' => db('hazard_classes')->groupBy("category_serial_number")->get(), - 'pattern' => '{category_serial_number}', - 'type' => 'multiple-choice' - ], - 'type_of_welding_machine' => [ - 'datas' => db('welding_machine_types')->get(), - 'pattern' => '{code}', - 'type' => 'multiple-choice' - ], - 'type_of_weld' => [ - 'datas' => db('welding_methods')->whereNotIn("ru_short_name", ['*'])->get(), - 'pattern' => '{ru_short_name}', - 'type' => 'multiple-choice' - ], - -]; - -/* -$prependColumns = [ - 'Download' => [ - 'type' => 'link-search', - 'path' => '003_Welding_Database/0002_Naks_Equipments/', - 'pattern' => "{attestation}*.pdf", - 'html' => '' - ] -]; -*/ -$firstUploadFolder = "003_Welding_Database/0002_Naks_Equipments"; -$firstUploadTitle = "Upload Naks Equipments Document"; - -$dataGridOptions = " -onToolbarPreparing: function(e) { - var toolbarItems = e.toolbarOptions.items; - var today = new Date(); - today.setHours(0,0,0,0); - - // Source Project Dropdown Filter - toolbarItems.unshift({ - location: 'before', - widget: 'dxSelectBox', - options: { - width: 200, - placeholder: 'Source Project', - showClearButton: true, - dataSource: { - store: { - type: 'array', - data: " . json_encode( - array_merge( - [['value' => '__this_project__', 'text' => '📍 This Project']], - DB::table('welding_equipment') - ->whereNotNull('source_project') - ->where('source_project', '!=', '') - ->groupBy('source_project') - ->pluck('source_project') - ->map(function($item) { - return ['value' => $item, 'text' => $item]; - }) - ->toArray() - ) - ) . ", - key: 'value' - } - }, - displayExpr: 'text', - valueExpr: 'value', - onValueChanged: function(args) { - if (args.value === '__this_project__') { - e.component.filter([['source_project', '=', null], 'or', ['source_project', '=', '']]); - } else if (args.value) { - e.component.filter(['source_project', '=', args.value]); - } else { - e.component.clearFilter('dataSource'); - } - } - } - }); - - // All Button - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'All', - icon: 'refresh', - stylingMode: 'text', - onClick: function() { - e.component.clearFilter(); - } - } - }); - - // Valid Button - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'Valid', - icon: 'check', - type: 'success', - stylingMode: 'contained', - onClick: function() { - e.component.filter(['valid_until', '>=', today]); - } - } - }); - - // Expired Button - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'Expired', - icon: 'remove', - type: 'danger', - stylingMode: 'contained', - onClick: function() { - e.component.filter(['valid_until', '<', today]); - } - } - }); -}, -"; - -$blockGroup = [ - 'General Information' => [ - 'source_project', - 'download', - 'location', - 'attestation', - 'producer', - - ], - 'Welding Info' => [ - 'type_of_welding_machine', - 'brand', - 'manufacturer_code', - 'type_of_weld', - 'groups_of_technical_devices', - 'date_of_issue', - 'valid_until', - ], - 'Result' => [ - 'working_status', - 'remarks', - ], -]; - -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/ncr-creator.blade.php b/resources/views/admin/type/ncr-creator.blade.php deleted file mode 100644 index 2f79fe0..0000000 --- a/resources/views/admin/type/ncr-creator.blade.php +++ /dev/null @@ -1,79 +0,0 @@ -files; -$tableName = "n_c_r_logs"; -$title = "NCR"; -$outputFilePath = "007_NCR/"; -$outputFileName = "ncr_no"; -$numberColumn = "ncr_no"; - -$relationDatas = [ - 'subcontractor' => [], - 'thirdparty' => [], - 'contractor' => [], - 'itp' => db("i_t_p_s")->groupBy("itp_no")->get()->pluck("itp_no")->toArray(), - ]; - ?> - - -@include("admin.type.inc.excel-form-templates") - - \ No newline at end of file diff --git a/resources/views/admin/type/ncr-log.blade.php b/resources/views/admin/type/ncr-log.blade.php deleted file mode 100644 index f653d22..0000000 --- a/resources/views/admin/type/ncr-log.blade.php +++ /dev/null @@ -1,165 +0,0 @@ -paginate(setting('row_count')); -$tableName = "n_c_r_logs"; - -$blockGroup = [ - 'General Info' => [ - 'date', - 'type', - 'ncr_no', - 'discipline', - 'department', - 'description_ru', - 'description_eng', - 'project', - 'evidence_or_ref_documents', - 'location', - 'subcontractor', - ], - 'Corrective Actions' => [ - 'corrective_action_ru', - 'corrective_action_eng', - 'root_cause_investigation', - 'current_status', - 'issued_by', - 'issue_date', - 'approved_percent', - 'approved_date', - ], - 'Timeline' => [ - 'planned_close_out_date', - 'close_out_date', - 'on_time', - 'difference_day', - ], - 'Cost Analysis' => [ - 'construction_cost', - 'technical_office_cost', - 'quality_cost', - 'total_cost', - ], - 'Related Info' => [ - 'related_ncrciar', - 'effectiveness', - 'remarks', - ], -]; - -$relationDatas = [ - 'type' => [ - 'values' => j(setting("ncr_types")) ?: [], - 'type' => 'manuel-select' - ], - 'current_status' => [ - 'values' => j(setting("ncr_current_status")) ?: [], - 'type' => 'manuel-select' - ], - /* - 'subcontractor' => [ - 'values' => db("subcontractors")->select("company_name_ru")->get()->pluck("company_name_ru")->toArray(), - 'type' => 'manuel-select', - 'customValue' => true - ], - */ - 'discipline' => [ - 'values' => db("disciplines")->get()->pluck("discipline_title")->toArray(), - 'type' => 'manuel-select' - ], - 'department' => [ - 'type' => 'long-text' - ], - 'description_eng' => [ - 'type' => 'long-text' - ], - 'description_ru' => [ - 'type' => 'long-text' - ], - 'corrective_action_eng' => [ - 'type' => 'long-text' - ], - 'corrective_action_ru' => [ - 'type' => 'long-text' - ], - 'root_cause_investigation' => [ - 'type' => 'long-text' - ], -]; - - -$prependColumns = [ - 'NCR File' => [ - 'type' => 'link-search', - 'path' => '007_NCR/', - 'pattern' => "*{ncr_no}*.pdf", - 'html' => '' - ], - 'NCR Excel' => [ - 'type' => 'link-search', - 'path' => '007_NCR/', - 'pattern' => "*{ncr_no}*.xlsx", - 'html' => '' - ], - -]; - -$firstUploadFolder = '007_NCR/'; -$firstUploadTitle = 'Upload PDF'; -$uploadPermissionKey = 'ncr_log_upload_permission'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/ncr-status.blade.php b/resources/views/admin/type/ncr-status.blade.php deleted file mode 100644 index 62b9d5e..0000000 --- a/resources/views/admin/type/ncr-status.blade.php +++ /dev/null @@ -1,960 +0,0 @@ - - - - - - - - - - -
-
-
-

NCR Status Summary

-
-
- -
-
-
- - -
-
-
- - -
-
-
- Select sections to export: -
- - - -
-
-
-
- - -
-
-
-
-

TOTAL NCR

-
-
-
-
-
- - - - - - - - - - - - -
NCR TYPETOTAL NCROPENWith CommentsCLOSEDCLOSURE RATE
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-

AUDIT NCR

-
-
-
-
-
- - - - - - - - - - - - -
RESPONSIBLETOTAL QTYOPENWith CommentsCLOSEDCLOSURE RATE
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-

INTERNAL NCR by Company

-
-
-
-
-
- - - - - - - - - - - - -
COMPANYTOTAL NCROPENWith CommentsCLOSEDCLOSURE RATE
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-

EXTERNAL NCR (SDR) by Company

-
-
-
-
-
- - - - - - - - - - - -
COMPANYTOTAL NCROPENCLOSEDCLOSURE RATE
-
-
-
-
-
-
-
-
-
-
- - -
-
-
-
-

IMPROVEMENT NOTES

-
-
-
-
-
- - - - - - - - - - - - -
RESPONSIBLETOTAL QTYOPENWith CommentsCLOSEDCLOSURE RATE
-
-
-
-
-
-
-
-
-
-
-
-
-
- - \ No newline at end of file diff --git a/resources/views/admin/type/nde-matrix.blade.php b/resources/views/admin/type/nde-matrix.blade.php deleted file mode 100644 index 8febf39..0000000 --- a/resources/views/admin/type/nde-matrix.blade.php +++ /dev/null @@ -1,347 +0,0 @@ -get(); - - -$relationDatas = [ - 'type_of_joint' => [ - 'datas' => $jointTypes, - 'pattern' => '{short_name_en}', - 'type' => 'select-dropdown' - ], - /* - 'group_no' => [ - 'values' => range(1,100), - 'type' => 'manuel-select' - ], - */ - 'pwht_field' => [ - 'values' => ['YES', 'NO'], - 'type' => 'manuel-select', - // 'default' => 'NO', - ], - - /* - 'line' => [ - 'type' => 'auto-complete', - 'table' => 'line_lists', - 'column' => 'line_no', - 'affected' => [ - - 'rev' => '{iso_rev}', - 'component_code' => '{no1_element_code}', - 'piping_class' => '{category} + {fluid_group}', - 'description_en' => '{member_no_1}', - 'description_ru' => '{member_no_2}', - 'dia_inch_1' => '{nps}', - 'odmm_1' => '{outside_diameter_mm}', - 'schedule_1' => '{thickness_by_asme}', - 'thicknessmm_1' => '{wall_thickness_mm}', - - ], - ], - */ - -]; -//$recordedDatas = recorded_data($tableName); - -$tableDifferentValues = table_different_values($tableName); - -$topButtons = []; - -$ndeMatrixCol = table_columns($tableName); -$lineListCol = table_columns("line_lists"); - - -/* -$topButtons[] = [ - 'href' => '?sync', - 'html' => ' ' . __("Sync Data From Line List") -]; -*/ - -//dump(implode("', '", $ndeMatrixCol)); -//dump($lineListCol); - -$blockGroup = [ - 'General Information' => [ - 'project', - 'group_no', - 'design_area', - ], - 'Line Info' => [ - 'fluid', - 'line', - 'line_spec', - 'pipe_material_class', - 'material', - 'operation_temp', - 'operations_pressure_kg', - 'type_of_joint', - 'pwht', - 'pwht_field', - 'tracing', - 'tracing_type', - 'naks_technology', - 'control_standart', - ], - 'NDT' => [ - 'ndt', - - ], - 'Piping Class' => ['piping_class_according_to_gost', 'piping_group'], - 'RT' => ['rt'], - 'UT' => ['ut'], - 'MT' => ['mt'], - 'PT' => ['pt'], - 'Phased Array' => ['phased_array'], - 'PT Procedure Approved' => ['pt_procedure_approved'], - 'HT' => ['ht'], - 'PMI' => ['pmi'], - 'FN' => ['fn'], - 'Rev' => ['rev'], - ]; - -?> - - - -
-
- pluck("short_name_en")->toArray(); - // dump($typeOfJoint); - - if(getisset("sync")) { - - $weldlogs = apply_welded_filter(db("weld_logs"))->get(); - $specJointTypes = []; - foreach($weldlogs AS $weldlog) { - if(!isset($specJointTypes[$weldlog->line_number])) - $specJointTypes[$weldlog->line_number] = []; - - if(!in_array($weldlog->type_of_welds, $specJointTypes[$weldlog->line_number])) - $specJointTypes[$weldlog->line_number][] = $weldlog->type_of_welds; - } - - $cachePrefix = 'nde_matrix_sync_last_id'; - $lastId = 0; - - if(Cache::has($cachePrefix)) { - $lastId = Cache::get($cachePrefix); - } - - $lineLists = db("line_lists") - ->where("id",">", $lastId) - ->take(2000) - ->get(); - - $count = 0; - - bilgi("Started ID :Id", "success", ['Id' => $lastId]); - - $added = []; - if(Cache::has($cachePrefix.'_added')) { - $added = Cache::get($cachePrefix.'_added'); - } - - foreach($lineLists AS $lineList) { - - if(isset($specJointTypes[$lineList->line_no])) { - $typeOfJoint = $specJointTypes[$lineList->line_no]; - foreach($typeOfJoint AS $jointItem) { - $data = [ - // 'group_no' => '', - 'design_area' => $lineList->unit, - 'fluid' => $lineList->fluid_code, - 'line' => $lineList->line_no, - 'line_spec' => $lineList->line_specification, - // 'material' => '', - 'operation_temp' => $lineList->working_temperature, - 'operations_pressure_kg' => $lineList->working_pressure_mpa, - 'type_of_joint' => $jointItem, - 'pwht' => $lineList->pwht, - // 'ht' => '', - 'ndt' => $lineList->ndt, - 'piping_class_according_to_gost' => $lineList->category, - 'piping_group' => $lineList->fluid_group, - /* 'rt' => '', - 'ut' => '', - 'mt' => '', - 'pt' => '', - 'phased_array' => '', - 'pt_procedure_approved' => '', - 'pmi' => '', - 'fn' => '', - */ - 'rev' => $lineList->rev - ]; - - NdeMatrix::firstOrCreate($data); - - - } - - Cache::put($cachePrefix, $lineList->id); - Cache::put($cachePrefix.'_added', $added); - } - - - - $count++; - } - - bilgi(":count Data has been sync from Line List", - "success", - ['count' => $count] - ); - -} -$listDatas = NdeMatrix::orderBy("id","DESC"); - -if(getisset("filter")) { - $get = $_GET; - unset($get['filter']); - unset($get['page']); - - $listDatas = $listDatas->where(function($query) use($get) { - foreach($get AS $column => $values) { - $query->whereIn($column, $values); - } - - }); -} - -$listDatas = $listDatas->paginate(setting('row_count')); -$tableType = "datagrid"; - -?> -
-
- @include("components.blocks.module-block") -
-
- - \ No newline at end of file diff --git a/resources/views/admin/type/ndt-calculation.blade.php b/resources/views/admin/type/ndt-calculation.blade.php deleted file mode 100644 index 6852ebe..0000000 --- a/resources/views/admin/type/ndt-calculation.blade.php +++ /dev/null @@ -1,19 +0,0 @@ - - -
-
- {{col("col-12","Welder & Line")}} - @include("admin.type.inc.ndt-calculation") - {{_col()}} - - @include("admin.type.inc.ndt-calculation-tp") - -
-
- - - - - diff --git a/resources/views/admin/type/ndt-clearance-report.blade.php b/resources/views/admin/type/ndt-clearance-report.blade.php deleted file mode 100644 index 122ebcb..0000000 --- a/resources/views/admin/type/ndt-clearance-report.blade.php +++ /dev/null @@ -1,186 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
- - -
-

-
{{e2("Waiting...")}}
-
- -
-
- - kid}"; - $lineLists = glob("$path/*.pdf"); - ?> -
-
- - - -
- -
- New Generate Single -
- -
{{e2("Generate Just One")}}
-
- -
- -
- Generated Files -
- - -
-
- - -
- -
-
- -
- - - -
- -
- - - \ No newline at end of file diff --git a/resources/views/admin/type/ndt-dashboard.blade.php b/resources/views/admin/type/ndt-dashboard.blade.php deleted file mode 100644 index 2e40685..0000000 --- a/resources/views/admin/type/ndt-dashboard.blade.php +++ /dev/null @@ -1,1197 +0,0 @@ - -
-
- - - -
- -
- - - - - -
-
-
-

{{e2($c->title)}}

-
-
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
- - -
-
- \ No newline at end of file diff --git a/resources/views/admin/type/ndt-order.blade.php b/resources/views/admin/type/ndt-order.blade.php deleted file mode 100644 index c80fca9..0000000 --- a/resources/views/admin/type/ndt-order.blade.php +++ /dev/null @@ -1,490 +0,0 @@ -
-
- {{col("col-md-12 col-lg-12","Chart", 0, ['no-options' => false])}} - @include("admin.type.inc.ndt-calculation") - - {{_col()}} - {{col("col-md-12 col-lg-12", "Order List", 0, ['no-options' => false])}} -
- - {{_col()}} - - - -
-
\ No newline at end of file diff --git a/resources/views/admin/type/ndt-order2.blade.php b/resources/views/admin/type/ndt-order2.blade.php deleted file mode 100644 index c188759..0000000 --- a/resources/views/admin/type/ndt-order2.blade.php +++ /dev/null @@ -1,546 +0,0 @@ -where("iso_number", "like", "%" . trim(get("iso_number")) . "%"); - $get = true; - - -} -*/ -if(!getesit("welding_date_1","")) { - $datas = $datas->whereDate("welding_date", ">=", get("welding_date_1")); - $datas = $datas->whereDate("welding_date", "<=", get("welding_date_2")); - // $get = true; -} - -if(getisset("filter")) { - $getData = $_GET; - unset($getData['welding_date_1']); - unset($getData['welding_date_2']); - unset($getData['filter']); - // unset($getData['iso_number']); - unset($getData['page']); - - $datas = $datas->where(function($query) use($getData) { - foreach($getData AS $column => $values) { - - // dd($get); - if(is_array($values)) { - $query->whereIn($column, $values); - } else { - if($values!="") { - $query->where($column, trim($values)); - } - - } - - } - - }); - - -} -//dd($datas->toSql()); -$naksWelders = db("naks_welders")->groupBy("welder_id")->whereNotNull("welder_id")->get(); -$subContractors = db("subcontractors")->get(); - -if($get) { - $datas = $datas->get(); -} else { - $datas = $datas->paginate(20); -} - -//dd($datas); - - -$neverWeldingDate = true; -foreach($datas AS $data) { - if($data->welding_date == "0000-00-00" || $data->welding_date == "") { - $progress = "On Going"; - $progress_type = "warning"; - } else { - $neverWeldingDate = false; - } -} - -if($neverWeldingDate) { - $progress = "Waiting"; - $progress_type = "danger"; -} -/* -$firstData = $datas[0]; - -if(!getesit("iso_number","")) { - $isoNumberTitle = "
LINE: {$firstData->iso_number}
"; -} -*/ - - - - -$tableDifferentValues = table_different_values($tableName); - -$columns = [ - 'id', - 'general_contractor', - 'contractor', - 'design_area', - 'line_specification', - 'line_number', - 'main_material', - 'main_nps', - 'fluid_code', - 'service_category', - 'fluid_group', - 'piping_class', - 'design_temperature_s', - 'design_pressure_mpa', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - 'painting_cycle', - 'external_finish_type', - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - - 'certificate_no', - 'wpq_report', - 'member_1', - 'material_1', - 'ru_material_group', - 'certificate_number_of_1', - 'heat_number_1', - 'nps', - 'thickness_by_asme_s_20_std', - 'outside_diameter_mm', - 'wall_thickness_mm', - '1_element_code', - 'member_2', - 'material_2', - 'ru_material_group2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps2', - 'thickness_by_asme_s_20_std2', - 'outsidediametermm', - 'wallthickness_mm', - '2_element_code', - 'ndt_percent', - 'vt_request', - 'vt_report', - 'date_of_vt', - 'test_laboratory_vt', - 'vt_result', - 'rt_scope', - 'rt_request', - 'rt_report', - 'rt_test_date', - 'test_laboratory_rt', - 'rt_result', - 'ut_scope', - 'ut_request', - 'ut_report', - 'ut_test_date', - 'test_laboratory_ut', - 'ut_result', - 'pt_scope', - 'pt_request', - 'pt_report', - 'pt_test_date', - 'test_laboratory_pt', - 'pt_result', - 'mt_scope', - 'mt_request', - 'mt_report', - 'mt_test_date', - 'test_laboratory_mt', - 'mt_result', - 'pmi_scope', - 'pmi_request', - 'no_of_testing_report', - 'pmi_test_date', - 'test_laboratory_pmi', - 'pmi_result', - 'pwht', - 'pwht_date', - 'of_pwht_report', - 'diagram_number_pwht', - 'test_laboratory_pwht', - 'nt_scope', - 'ht_request', - 'no_of_ht_hardnes_test', - 'ht_request_date', - 'test_laboratory_ht', - 'ht_result', - 'ferrite_scope', - 'ferrite_check_request', - 'no_of_ferrite_check', - 'date_of_ferrite_check', - 'test_laboratory_ferrite', - 'ferrite_result', - 'test_package', - 'test_pressure', - 'type_of_test', - 'date_test', - 'test_result', - 'real_welder_1', - 'real_welder_2', - 'ste_subcontructer' -]; - - - -/* -Spool number -No of the joint As per As Built survey -Type of joint -Type of welds -WPS № -Welding materials 1 -Welding materials 1 -Lot No -Welding materials 1 -Certificate No -Welding materials 2 -Welding materials 2 Lot No -Welding materials 2 -Certificate No -Welding materials 3 -Welding materials 3 Lot No -Welding materials 3 Certificate No -Test Package № -Remarks -NDT Release Date -Paint Status -Spool Weight -*/ -$filterLists = [ - 'iso_number', - 'project', - 'design_area', - 'spool_number', - 'welding_date', - 'quantity_of_iso', - 'test_package_no', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_joint', - 'pwht', - 'service_category', - 'fluid_group', - 'contractor', - 'ste_subcontractor', - -]; - - -$orderList = [ - 'test_package_no', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_joint', - 'type_of_welds', - 'welding_date', - 'spool_number', - 'welder_1', - 'welder_2', - 'member_no_1', - 'material_no_1', - 'nps_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'member_no_2', - 'material_no_2', - 'nps_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'vt_request_date', - 'test_laboratory_vt', - 'pwht_date', - 'test_laboratory_pwht', - 'ht_request_date', - 'test_laboratory_ht', - 'rt_request_date', - 'test_laboratory_rt', - 'ut_test_date', - 'test_laboratory_ut', - 'ut_type', - 'pt_test_date', - 'test_laboratory_pt', - 'mt_test_date', - 'test_laboratory_mt', - 'pmi_test_date', - 'test_laboratory_pmi', -]; - -if(getesit("iso_number","")) { - array_unshift($orderList, 'iso_number'); -} - - - - - -$editableColumns = [ - 'fit_up_date', - 'welding_date', - 'welder_1', - 'welder_2', - 'vt_request_date', - 'test_laboratory_vt', - 'pwht_date', - 'test_laboratory_pwht', - 'ht_request_date', - 'test_laboratory_ht', - 'rt_request_date', - 'test_laboratory_rt', - 'ut_test_date', - 'test_laboratory_ut', - 'ut_type', - 'pt_test_date', - 'test_laboratory_pt', - 'mt_test_date', - 'test_laboratory_mt', - 'pmi_test_date', - 'test_laboratory_pmi', -]; - -$textColumns = [ - 'iso_number', - 'project', -]; - -$dateColumns = [ - 'fit_up_date', - 'welding_date', - 'vt_request_date', - 'pwht_date', - 'ht_request_date', - 'rt_request_date', - 'ut_test_date', - 'pt_test_date', - 'mt_test_date', - 'pmi_test_date', -]; - -?> - - - - - -
-
- {{col("col-md-12 col-lg-9", "Filter", 0, ['no-options' => false])}} -
- -
- -
-
- - -
- -
- - -
- - -
- - - - - - -
-
- -
-
- -
-
-
- -
- - {{_col()}} - {{col("col-md-12 col-lg-3","Chart", 0, ['no-options' => false])}} - - @include("admin.type.inc.manage-calc") - -
{{e2("Please select drawing no")}}
- - - {{_col()}} - - - {{col("col-md-12","Order List")}} - {{$datas->appends($_GET)->links()}} -
- - - - - - - - - - - - - - - - - -
{{e2($column)}}
- - - - @include("components.columns.select-dropdown") - - - - - - - {{$data->$orderColumn}} - - - - - -
- -
- {{$datas->appends($_GET)->links()}} - {{_col()}} - -
-
- - - \ No newline at end of file diff --git a/resources/views/admin/type/notification-filtered-list.blade.php b/resources/views/admin/type/notification-filtered-list.blade.php deleted file mode 100644 index 3097210..0000000 --- a/resources/views/admin/type/notification-filtered-list.blade.php +++ /dev/null @@ -1,179 +0,0 @@ -@extends('admin.master') -@section("title", "Filtered List - " . ($notification->title ?? 'Notification')) -@section('content') - -
-
-
-

- Filtered List -

- -
-
- -
-
- {{ $notification->title }} -
-

{{ $notification->message }}

-
- - -
-
- -

Loading filtered data...

-
-
-
-
-
- - - -@endsection - diff --git a/resources/views/admin/type/notification-logs.blade.php b/resources/views/admin/type/notification-logs.blade.php deleted file mode 100644 index ec1f857..0000000 --- a/resources/views/admin/type/notification-logs.blade.php +++ /dev/null @@ -1,313 +0,0 @@ -@extends('admin.master') -@section("title", "Notification Logs") -@section('content') - -
-
-
-

- Notification Command Logs -

-
-
- - -
-
-
- -
- $matches[1], - 'status' => $matches[2], - 'command' => $data['command'] - ]; - - $cmd = $data['command']; - if (!isset($commandStats[$cmd])) { - $commandStats[$cmd] = ['scheduled' => 0, 'finished' => 0, 'last_run' => null]; - } - if ($matches[2] === 'scheduled') { - $commandStats[$cmd]['scheduled']++; - } elseif ($matches[2] === 'finished') { - $commandStats[$cmd]['finished']++; - } - if (!$commandStats[$cmd]['last_run'] || $matches[1] > $commandStats[$cmd]['last_run']) { - $commandStats[$cmd]['last_run'] = $matches[1]; - } - } - } - } - } - - $activeCommands = 0; - foreach ($commandStats as $stats) { - if ($stats['last_run'] && strtotime($stats['last_run']) > (time() - 600)) { - $activeCommands++; - } - } - ?> - - - - - -
-
-
-
-
- - Schedule Status: - Last Run: {{ $lastScheduleRun ? date('H:i:s', strtotime($lastScheduleRun)) : 'N/A' }} - Active Commands: {{ $activeCommands }} / {{ count($commandStats) }} -
-
- @if($lastScheduleRun && strtotime($lastScheduleRun) > (time() - 60)) - Running - @else - Inactive - @endif -
-
-
-
-
- - -
- -
-
-
-
- -
-
-
{{ $summary['total_executions'] }}
-
Total Executions
-
-
-
-
- - -
-
-
-
- -
-
-
{{ $summary['completed'] }}
-
Completed
-
-
-
-
- - -
-
-
-
- -
-
-
{{ $summary['skipped'] }}
-
Skipped
-
-
-
-
- - -
-
-
-
- -
-
-
{{ $summary['errors'] }}
-
Errors
-
-
-
-
- - -
-
-
-
- -
-
-
{{ $summary['total_notifications_sent'] }}
-
Total Notifications Sent
-
-
-
-
-
- - -
- - - - - - - - - - - - - - @if(empty($summary['commands'])) - - - - @else - @foreach($summary['commands'] as $command => $stats) - - - - - - - - - - @endforeach - @endif - -
CommandScheduledExecutionsCompletedSkippedErrorsTotal Sent
- No logs found for {{ $selectedDate }} -
{{ $command }} - {{ $stats['scheduled_count'] ?? 0 }} - {{ $stats['executions'] }} - {{ $stats['completed'] }} - - {{ $stats['skipped'] }} - - {{ $stats['errors'] }} - - {{ $stats['total_sent'] }} -
-
- - -
-

Raw Log File

-
-
- -
{{ implode("\n", $lastLines) }}
- -

No log file found for {{ $selectedDate }}

- -
-
-
-
-
-
- -@endsection diff --git a/resources/views/admin/type/paint-follow-up.blade.php b/resources/views/admin/type/paint-follow-up.blade.php deleted file mode 100644 index 208549e..0000000 --- a/resources/views/admin/type/paint-follow-up.blade.php +++ /dev/null @@ -1,449 +0,0 @@ - [ - 'project', - 'description', - 'area', - 'location', - ], - 'Line Info' => [ - 'line', - 'iso_number', - 'spool_no_joint_no', - 'fluid_code', - 'fluid_code_description', - ], - 'Primer' => [ - 'cycle', - 'primer_coat_name_1', - 'brend_name_1', - 'colour_1', - 'ral_code_1', - 'thickness_1', - ], - 'Intermediate' => [ - 'intermediate_coat_name_2', - 'brend_name_2', - 'colour_2', - 'ral_code_2', - 'thickness_2', - ], - 'Final' => [ - 'final_coat_name_3', - 'brend_name_3', - 'colour_3', - 'ral_code_3', - 'thickness_3', - ], - 'Incoming Control' => [ - 'certificate_passport_no_1', - 'incoming_control_akt_no_1', - 'incoming_control_rfi_no_1', - 'akt_date_1', - 'standartgost_iso_en_1', - 'certificate_passport_date_1', - ], - 'Incoming Control 2' => [ - 'certificate_passport_no_2', - 'incoming_control_akt_no_2', - 'incoming_control_rfi_no_2', - 'akt_date_2', - 'standartgost_iso_en_2', - 'certificate_passport_date_2', - ], - 'Incoming Control 3' => [ - 'certificate_passport_no_3', - 'incoming_control_akt_no_3', - 'incoming_control_rfi_no_3', - 'akt_date_3', - 'standartgost_iso_en_3', - 'certificate_passport_date_3', - ], - 'Cleaning Information' => [ - 'surface_preparation_equipment', - 'surface_roughness', - 'standartgost_iso_en_cleaning', - 'brend_name', - 'passport_no', - 'passport_date', - 'protocol_no_cleaning', - 'protocol_date_cleaning', - 'surface_preparation_rfi_no', - 'substrate_temprature', - 'ambient_temprature', - ], - 'Primer Measured' => [ - 'primer_measured_thickness_1', - 'primer_coating_protocol_no', - 'primer_coating_protocol_date', - 'primer_coating_start_date', - 'primer_coating_finish_date', - 'primer_coating_rfi_no', - 'primer_coating_rfi_date_1', - 'volume_1', - - - ], - 'Intermadiate Measured' => [ - - 'intermediate_measured_thickness_2', - 'intermediate_coating_protocol_no_2', - 'intermediate_coating_protocol_date2', - 'start_intermediate_date2', - 'finish_intermediate_date2', - 'intermediate_coating_rfi_no2', - 'intermediate_coating_rfi_date_3', - 'volume_2', - ], - 'Final Coating Measured' => [ - - 'final_coating_measured_thickness_3', - 'final_coating_protocol_no_3', - 'final_coatingprotocol_date_3', - 'final_coat_start_date3', - 'final_coat_finish_date3', - 'final_coating_rfi_no3', - 'final_coating_rfi_date_3', - 'volume_3', - ], - 'Status' => [ - 'total_volume', - 'total_thickness', - 'status', - 'remarks', - ], -]; - -$jointTypes = db("joint_types")->get(); - -$paintMatrix = db("paint_matrices")->get(); -$brends = []; - -foreach($paintMatrix AS $pm) { - - if(!is_null($pm->brend_name_1)) - $brends[] = $pm->brend_name_1; - - if(!is_null($pm->brend_name_2)) - $brends[] = $pm->brend_name_2; - - if(!is_null($pm->brend_name_3)) - $brends[] = $pm->brend_name_3; -} - -$brends = array_unique($brends); -$relationDatas = [ - - 'brend_name_1' => [ - 'values' => $brends, - 'type' => 'manuel-select' - ], - 'brend_name_2' => [ - 'values' => $brends, - 'type' => 'manuel-select' - ], - 'brend_name_3' => [ - 'values' => $brends, - 'type' => 'manuel-select' - ], - 'paint_subcontructer' => [ - 'values' => db("subcontractors")->get()->pluck("company_name_en")->toArray(), - 'type' => 'manuel-select' - ], - 'type_of_joint' => [ - 'datas' => $jointTypes, - 'pattern' => '{short_name_en}', - 'type' => 'select-dropdown' - ], -]; - -//$recordedDatas = recorded_data($tableName); - -$tableDifferentValues = table_different_values($tableName); - -$topButtons = []; - - - - -$topButtons[] = [ - 'href' => '?sync', - 'html' => ' ' . __("Sync Data From Paint Matrix") -]; -//dump(implode("', '", $ndeMatrixCol)); -//dump($ndeMatrixCol); - - -?> - - - -
-
- pluck("short_name_en")->toArray(); - - if(getisset("sync")) { - - $cachePrefix = 'paint_follow_ups_sync_last_id'; - $lastId = 0; - - if(Cache::has($cachePrefix)) { - $lastId = Cache::get($cachePrefix); - } - - $paintMatrixs = db("paint_matrices")->where("id",">", $lastId)->take(200)->get(); - - - $count = 0; - - bilgi("Started ID :Id", "success", ['Id' => $lastId]); - - $added = []; - if(Cache::has($cachePrefix.'_added')) { - $added = Cache::get($cachePrefix.'_added'); - } - - $paintMatrixCols = table_columns("paint_matrices"); - $paintFollowUpCols = table_columns("paint_follow_ups"); - - $commonCols = array_intersect($paintMatrixCols, $paintFollowUpCols); - unset($commonCols[0]); - foreach($paintMatrixs AS $paintMatrix) { - - $data = []; - - foreach($commonCols AS $col) { - $data[$col] = $paintMatrix->$col; - }; - - - PaintFollowUp::firstOrCreate($data); - - Cache::put($cachePrefix, $paintMatrix->id); - Cache::put($cachePrefix.'_added', $added); - - $count++; - } - - bilgi(":count Data has been sync from Paint Matrix", - "success", - ['count' => $count] - ); - -} - -$listDatas = PaintFollowUp::orderBy("id","DESC"); - -if(getisset("filter")) { - $get = $_GET; - unset($get['filter']); - unset($get['page']); - - $listDatas = $listDatas->where(function($query) use($get) { - foreach($get AS $column => $values) { - $query->whereIn($column, $values); - } - - }); -} - -$listDatas = $listDatas->paginate(setting('row_count')); - -?> -
-
- @include("components.blocks.module-block") -
-
- - - diff --git a/resources/views/admin/type/paint-matrix.blade.php b/resources/views/admin/type/paint-matrix.blade.php deleted file mode 100644 index ad68c90..0000000 --- a/resources/views/admin/type/paint-matrix.blade.php +++ /dev/null @@ -1,189 +0,0 @@ -get(); - -$relationDatas = [ - 'type_of_joint' => [ - 'datas' => $jointTypes, - 'pattern' => '{short_name_en}', - 'type' => 'select-dropdown' - ], - - -]; -//$recordedDatas = recorded_data($tableName); - -$tableDifferentValues = table_different_values($tableName); - -$topButtons = []; - -$ndeMatrixCol = table_columns($tableName); -$ndeMatrixCol = table_columns("line_lists"); - -$blockGroup = [ - 'General' => [ - 'project', - 'description', - 'area', - 'line', - 'fluid_code', - 'fluid_code_description', - ], - 'Design' => [ - 'design_temperature', - 'operation_temperature', - 'paint_cycle', - 'surface_preparation', - 'touch_up_of_damaged_parts', - ], - 'Primer' => [ - 'primer_coat', - 'brend_name_1', - 'colour_1', - 'ral_code_1', - 'thickness_1', - ], - 'Intermediate' => [ - 'intermediate_coat', - 'brend_name_2', - 'colour_2', - 'ral_code_2', - 'thickness_2', - ], - 'Final' => [ - 'final_coat', - 'brend_name_3', - 'colour_3', - 'ral_code_3', - 'thickness_3', - ], - 'Total' => [ - 'total_thickness', - 'remarks', - ], - -]; -?> - - - -
-
- pluck("short_name_en")->toArray(); - - -$listDatas = PaintMatrix::orderBy("id","DESC"); - -if(getisset("filter")) { - $get = $_GET; - unset($get['filter']); - unset($get['page']); - - $listDatas = $listDatas->where(function($query) use($get) { - foreach($get AS $column => $values) { - $query->whereIn($column, $values); - } - - }); -} - -$listDatas = $listDatas->paginate(setting('row_count')); - -?> -
-
- @include("components.blocks.module-block") -
-
- - \ No newline at end of file diff --git a/resources/views/admin/type/paint-system.blade.php b/resources/views/admin/type/paint-system.blade.php deleted file mode 100644 index 3da7f3c..0000000 --- a/resources/views/admin/type/paint-system.blade.php +++ /dev/null @@ -1,102 +0,0 @@ -paginate(setting('row_count')); -$tableName = "paint_systems"; - -//$tableType = "datagrid"; - -$relationDatas = [ - -]; -$blockGroup = [ - 'Engineering' => [ - 'paint_cycle', - 'surface_preparation', - 'surface_roughness', - 'revision' - ], - 'First Layer' => [ - 'primer_coat_name_1', - 'brand_name_1', - 'thickness_1', - 'consumption_paint_kg_1' - ], - 'Second Layer' => [ - 'primer_coat_name_2', - 'brand_name_2', - 'thickness_2', - 'consumption_paint_kg_2' - ], - 'Third Layer' => [ - 'primer_coat_name_3', - 'brand_name_3', - 'thickness_3', - 'consumption_paint_kg_3' - ], - 'Totals' => [ - 'total_kg', - 'total_microns' - ] -]; - - -?> - - -
-
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/pdf-editor.blade.php b/resources/views/admin/type/pdf-editor.blade.php deleted file mode 100644 index 380dec5..0000000 --- a/resources/views/admin/type/pdf-editor.blade.php +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - -@include('admin.type.pdf-editor.styles') - - - -
-
-
-

{{e2($c->title)}}

-
-
-
- - - @include('admin.type.pdf-editor.sidebar') - -
- - - @include('admin.type.pdf-editor.toolbar') - - - @include('admin.type.pdf-editor.canvas') - -
-
-
-
-
- - -@include('admin.type.pdf-editor.scripts') diff --git a/resources/views/admin/type/pdf-editor.blade.php.backup b/resources/views/admin/type/pdf-editor.blade.php.backup deleted file mode 100644 index 3d0a377..0000000 --- a/resources/views/admin/type/pdf-editor.blade.php.backup +++ /dev/null @@ -1,4841 +0,0 @@ - - - - - - - - -
-
-
-

{{e2($c->title)}}

-
-
-
- -
-
-
-
-
-
- - - - - - - -
- - -
- - - - - - -
-
- - 100% - - -
-
- -
- 1 / 1 -
- -
-
-
-
- -
- - -
-
- -

Select a PDF file to start editing

-
-
-
-
-
-
-
-
- \ No newline at end of file diff --git a/resources/views/admin/type/pdf-file-generator.blade.php b/resources/views/admin/type/pdf-file-generator.blade.php deleted file mode 100644 index fd78a34..0000000 --- a/resources/views/admin/type/pdf-file-generator.blade.php +++ /dev/null @@ -1,86 +0,0 @@ - -
-

{{e2("Generate Folder to PDF from Document Templates")}}

-
-whereNotNull("kid")->get(); - -?> -@foreach($documents AS $document) - {{col("col-md-3",$document->title, 0, ['no-options'=> true])}} - {{$document->kid}}
- json); - ?> - Paper: {{$j['paper']}}
-
{{e2("Generate Folder to PDF")}}
- {{_col()}} -@endforeach -
-

{{e2("Recently Created PDF Zip Files")}}

- -
- {{col("col-12","")}} -
- - - - - - - @foreach($zipFiles AS $zipFile) - - - - - - - @endforeach -
{{e2("Zip File")}}{{e2("Created Date")}}{{e2("Process")}}
{{$zipFile}}{{date("d.m.Y H:i:s", $createdDate)}}
- -
- {{_col()}} -
- - -
- - - - - \ No newline at end of file diff --git a/resources/views/admin/type/pmi-log.blade.php b/resources/views/admin/type/pmi-log.blade.php deleted file mode 100644 index 2d3a506..0000000 --- a/resources/views/admin/type/pmi-log.blade.php +++ /dev/null @@ -1,153 +0,0 @@ -paginate(setting('row_count')); -$tableName = "p_m_i_tests"; - -$tableType = "datagrid"; - -$relationDatas = [ - 'report_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'pmi_result' => [ - 'datas' => db("results")->get(), - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ], -]; -$blockGroup = [ - 'Info' => [ - 'report_file', - 'contractor', - ], - - 'Invoice' => [ - 'invoice_number', - 'invoice_date', - ], - 'Laboratory' => [ - 'test_laboratory_pmi', - - ], - 'Project' => [ - 'project', - - ], - 'Design' => [ - 'design_area', - 'line_specification', - 'line_number', - 'fluid_code', - 'service_category', - 'fluid_group', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - - ], - 'ISO Info' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_welds', - ], - 'Welding Info' => [ - 'welding_date', - 'wps_no', - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welder_1', - 'welder_2', - ], - 'Base Element Info' => [ - 'certificate_no_1', - 'wpq_report_1', - 'certificate_no_2', - 'wpq_report_2', - 'member_no_1', - 'material_no_1', - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'element_code_1', - 'member_no_2', - 'material_no_2', - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'element_code_2', - ], - 'PT Info' => [ - 'pmi_scope', - 'pmi_request_no', - 'pmi_request_date', - 'no_of_testing_report', - 'pmi_test_date', - 'pmi_result', - 'control_standart', - 'tester_name', - 'real_welder_1', - 'real_welder_2', - - ], - 'Element Info' => [ - 'carbon', - 'silicon', - 'manganese', - 'phosphorus', - 'sulfur', - 'chromium', - 'nickel', - 'molybdenum', - 'copper', - 'aluminium', - 'titanium', - 'vanadium', - 'tungsten', - ] - - - - -]; - -$firstUploadFolder = '004_QA/0005_PMI/'; -$firstUploadTitle = 'Upload PDF'; -$uploadPermissionKey = 'pmi_log_upload_permission'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/pqr.blade.php b/resources/views/admin/type/pqr.blade.php deleted file mode 100644 index a9f7747..0000000 --- a/resources/views/admin/type/pqr.blade.php +++ /dev/null @@ -1,311 +0,0 @@ -paginate(setting('row_count')); -$tableName = "prosedure_qualification_records"; -$materials = db('materials')->get(); -$weldingPositions = db('welding_positions')->get(); -$weldingConsumables = db('welding_consumables')->get(); -$weldingMethods = db('welding_methods')->whereNotIn("ru_short_name",['*'])->get(); -$currentTypes = db('current_types')->get(); -$jointTypes = db('joint_types')->get(); -$naksTechnology = db('naks_certificates')->groupBy("certificate_no")->get(); -$workTypes = db('work_types')->get(); - -$blockGroup = [ - 'PQR Info' => [ - 'download', - 'pqr_no', - 'rev_no', - 'naks_technology', - 'technology_category', - 'pwps_no', - 'base_metal_used_for_pqr_coupon', - 'date', - 'welding_process', - 'welding_position', - - ], - 'Base Material' => [ - 'type_grade_1', - 'type_grade_2', - 'russian_standart_group_no', - 'russian_standart_group_no_2', - 'p_no_to', - 'p_no_from', - 'outside_diameter', - 'thickness', - 'brend', - 'filter_metals_aws_sfa_no_class', - 'filter_metals_gost', - 'pre_heating_min', - 'inter_pass_max', - 'pwht_temp_range', - 'pwht_min_time', - 'shielding_gas', - 'backing_gas', - 'current_polarity', - 'joint_design', - 'base_metal', - - ], - - 'Qualitification Range' => [ - 'qualitication_outside_diameter_min', - 'qualitication_outside_diameter_max', - 'thickness_min', - 'thickness_max', - 'qualitication_group_of_parent_material', - ], - 'Result' => [ - 'qualitication_process', - 'pre_heating', - 'qualitication_pwht', - 'qualitication_type_of_joint', - 'qualitication_backing_gas', - 'approved_date', - 'status', - ], -]; - -$gasNaksConsumables = db("naks_consumables")->where("type_of_consumable", "Gas / Газ")->groupBy("product_name")->select("product_name")->get(); - -$relationDatas = [ - 'naks_technology' => [ - 'type' => 'string' - ], - /* - 'base_metal_used_for_pqr_coupon' => [ - 'datas' => $materials, - 'pattern' => '{steel_grade}', - 'type' => 'multiple-choice', - ], - - 'welding_process' => [ - 'datas' => $weldingMethods, - 'pattern' => '{ru_short_name}/{en_welding_number}', - 'type' => 'multiple-choice', - ], - */ - 'welding_position' => [ - 'datas' => $weldingPositions, - 'pattern' => '{gost}/{en}', - 'type' => 'multiple-choice' - ], - 'shielding_gas' => [ - - 'datas' => $gasNaksConsumables, - 'pattern' => '{product_name}', - 'type' => 'select-dropdown' - ], - 'backing_gas' => [ - - 'datas' => $gasNaksConsumables, - 'pattern' => '{product_name}', - 'type' => 'select-dropdown' - ], - 'qualitication_position' => [ - 'type' => 'string' - ], - /* - 'technology_category' => [ - - 'filter' => [ - 'targetColumn' => 'naks_technology', - 'table' => 'naks_certificates', - 'filterColumn' => 'certificate_no' - ], - - 'datas' => $naksTechnology, - 'pattern' => '{technology_category}', - 'type' => 'select-dropdown' - ], - */ - /* - 'type_grade_1' => [ - 'datas' => $materials, - - 'filter' => [ - 'targetColumn' => 'naks_technology', - 'table' => 'naks_certificates', - 'filterColumn' => 'certificate_no' - ], - 'pattern' => '{steel_grade}', - 'type' => 'select-dropdown2', - 'affected' => [ - 'russian_standart_group_no' => '{ru_group}', - 'p_no_from' => '{asme_number}', - ] - ], - - 'type_grade_1' => [ - 'type' => 'auto-complete2', - 'table' => 'materials', - 'column' => 'steel_grade', - 'pattern' => '{steel_grade}', - 'affected' => [ - 'russian_standart_group_no' => '{ru_group}', - 'p_no_from' => '{asme_number}', - ] - ], - 'type_grade_2' => [ - 'type' => 'auto-complete2', - 'table' => 'materials', - 'column' => 'steel_grade', - 'pattern' => '{steel_grade}', - 'affected' => [ - 'russian_standart_group_no_2' => '{ru_group}', - 'p_no_to' => '{asme_number}', - ] - ], - */ - - 'welding_method' => [ - 'datas' => $weldingPositions, - 'pattern' => '{gost}/{en}', - 'type' => 'multiple-choice' - ], - - /* - 'type_grade_1' => [ - 'table' => 'materials', - 'datas' => $materials, - 'value' => 'steel_grade', - 'text' => ['steel_grade'], - 'type' => 'select', - 'affected' => [ - 'russian_standart_group_no' => '{ru_group}', - 'p_no_from' => '{asme_number}', - ] - ], - - 'type_grade_2' => [ - 'table' => 'materials', - 'datas' => $materials, - 'value' => 'steel_grade', - 'text' => ['steel_grade'], - 'type' => 'select', - 'affected' => [ - 'russian_standart_group_no_2' => '{ru_group}', - 'p_no_to' => '{asme_number}', - ] - ], - */ - /* - 'brend' => [ - 'table' => 'welding_consumables', - 'datas' => $weldingConsumables, - 'value' => 'brend', - 'text' => ['brend'], - 'type' => 'select', - 'affected' => [ - 'filter_metals_aws_sfa_no_class' => '{aws_class}-{aws_specification}', - 'filter_metals_gost' => '{gost_class}-{gost_specification}' - ] - ], - */ - /* - 'brend' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{brend}', - 'type' => 'multiple-choice', - 'seperator' => ' + ' - ], - */ - 'current_polarity' => [ - 'datas' => $currentTypes, - 'pattern' => '{title}', - 'type' => 'multiple-choice' - ], - 'joint_design' => [ - 'datas' => $jointTypes, - 'pattern' => '{short_name_en}', - 'type' => 'select-dropdown' - ], - 'qualitication_type_of_joint' => [ - 'datas' => $jointTypes, - 'pattern' => '{short_name_en}', - 'type' => 'multiple-choice' - ], - /* - 'base_metal' => [ - 'datas' => $workTypes, - 'pattern' => '{title_en}', - 'type' => 'select-dropdown' - ], - */ - 'pwht_temp_range' => [ - 'required' => [ - 'column' => 'pwht', - 'value' => 'YES' - ], - 'type' => 'integer' - ], - 'pwht_min_time' => [ - 'required' => [ - 'column' => 'pwht', - 'value' => 'YES' - ], - 'type' => 'integer' - ], - 'qualitication_pwht' => [ - 'values' => [ - 'YES', - 'NO', - ], - 'type' => 'manuel-select' - ], - - 'download' => [ - 'type' => 'link-search', - 'html' => '' - ], - - - -]; - - - -$firstUploadFolder = "003_Welding_Database/0004_PQR"; -$firstUploadTitle = "Upload PQR Document"; -?> -select( - "incoming_value", - "provision_value" - )->get(); - - $material_group_test_pieces_data = []; - - foreach($material_group_test_pieces AS $piece) { - $piece->incoming_value = str_replace(",", ".", $piece->incoming_value); - $material_group_test_pieces_data[$piece->incoming_value] = $piece->provision_value; - } - - ?> - - - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
-@include("admin.type.pqr.datagrid-script") - \ No newline at end of file diff --git a/resources/views/admin/type/pt-log.blade.php b/resources/views/admin/type/pt-log.blade.php deleted file mode 100644 index bd2524f..0000000 --- a/resources/views/admin/type/pt-log.blade.php +++ /dev/null @@ -1,133 +0,0 @@ -paginate(setting('row_count')); -$tableName = "p_t_logs"; - -$relationDatas = [ - 'report_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'pt_result' => [ - 'datas' => db("results")->get(), - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ], -]; -$blockGroup = [ - 'Info' => [ - 'report_file', - 'contractor', - ], - - 'Invoice' => [ - 'invoice_number', - 'invoice_date', - ], - 'Laboratory' => [ - 'test_laboratory_pt', - - ], - 'Project' => [ - 'project', - - ], - 'Design' => [ - 'design_area', - 'line_specification', - 'line_number', - 'fluid_code', - 'service_category', - 'fluid_group', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - - ], - 'ISO Info' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_welds', - ], - 'Welding Info' => [ - 'welding_date', - 'wps_no', - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welder_1', - 'welder_2', - ], - 'Element Info' => [ - 'certificate_no', - 'wpq_report', - 'member_no_1', - 'material_no_1', - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'element_code_1', - 'member_no_2', - 'material_no_2', - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'element_code_2', - ], - 'PT Info' => [ - 'pt_scope', - 'pt_request_no', - 'pt_request_date', - 'pt_report', - 'pt_test_date', - 'pt_result', - 'control_standart', - 'defects', - 'tester_name', - ], - - - - -]; - - -$firstUploadFolder = '004_QA/0004_PT/'; -$firstUploadTitle = 'Upload PDF'; -$uploadPermissionKey = 'pt_log_upload_permission'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/pto-pml.blade.php b/resources/views/admin/type/pto-pml.blade.php deleted file mode 100644 index e4afc54..0000000 --- a/resources/views/admin/type/pto-pml.blade.php +++ /dev/null @@ -1,58 +0,0 @@ - [ - 'project', - 'line', - 'revision', - 'group', - 'section', - ], - - 'Document Details' => [ - 'list', - 'position', - 'quantity', - 'standard', - ], - - 'Material Details' => [ - 'material_name_en', - 'material_name_ru', - 'material', - 'dn', - 'thickness', - 'pn', - 'id_code', - ], - -]; - -$firstUploadFolder = '004_QA/0001_RT/'; -$firstUploadTitle = 'Upload PDF'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/punch-description.blade.php b/resources/views/admin/type/punch-description.blade.php deleted file mode 100644 index 2172c96..0000000 --- a/resources/views/admin/type/punch-description.blade.php +++ /dev/null @@ -1,28 +0,0 @@ -paginate(setting('row_count')); -$tableName = "punch_descriptions"; -$relationDatas = [ - 'discipline' => [ - 'values' => db("general_disciplines")->get()->pluck("title")->toArray(), - 'type' => 'manuel-select' - ], -] -?> - - -
-
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/punch-list-comment.blade.php b/resources/views/admin/type/punch-list-comment.blade.php deleted file mode 100644 index 1c5a0c0..0000000 --- a/resources/views/admin/type/punch-list-comment.blade.php +++ /dev/null @@ -1,35 +0,0 @@ -paginate(setting('row_count')); -$tableName = "punch_list_comments"; - -$relationDatas = [ - - 'discipline' => [ - 'values' => db("general_disciplines")->get()->pluck("title")->toArray(), - 'type' => 'manuel-select' - ], - -]; - -?> - - -
-
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/punch-list.blade.php b/resources/views/admin/type/punch-list.blade.php deleted file mode 100644 index bc58f65..0000000 --- a/resources/views/admin/type/punch-list.blade.php +++ /dev/null @@ -1,138 +0,0 @@ -paginate(setting('row_count')); -$tableName = "punch_lists"; - -$requiredFields = ['category']; -$relationDatas = [ - 'punch_list_download' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'subcontractor' => [ - 'values' => db("subcontractors")->where("job_description", "Montaj")->get()->pluck("company_name_en")->toArray(), - 'type' => 'manuel-select' - ], - 'originator_company' => [ - 'values' => db("subcontractors")->whereIn("job_description", ['Engineering', 'Employeer', 'Third Party', 'Construction'])->get()->pluck("company_name_en")->toArray(), - 'type' => 'manuel-select' - ], - 'discipline' => [ - 'values' => db("general_disciplines")->get()->pluck("title")->toArray(), - 'type' => 'manuel-select' - ], - 'area' => [ - 'values' => db("weld_logs")->groupBy("design_area")->get()->pluck("design_area")->toArray(), - 'type' => 'manuel-select' - ], - 'status' => [ - 'values' => [ - 'Open', - 'Closed', - 'Canceled', - ], - 'default' => 'Open', - 'type' => 'manuel-select' - ], - 'category' => [ - 'values' => [ - 'A', - 'B', - 'C', - 'D', - 'E', - ], - 'type' => 'manuel-select' - ], -]; - -$blockGroup = [ - 'General Information' => [ - 'punch_list_download', - 'subcontractor', - 'discipline', - 'unit', - 'area', - ], - 'Test Pack Info' => [ - 'test_package', - 'line_isometric_no', - 'punch_list_no', - - - ], - 'Comments' => [ - 'code_number', - 'eng', - 'rus', - 'category', - ], - 'RFI Info' => [ - 'rfi_no', - 'rfi_date', - 'reference_document', - 'originator_name', - 'originator_company', - 'found_date', - 'close_target_date', - - ], - 'Results' => [ - 'action_by', - 'status', - 'items_cleared_by_name', - 'items_cleared_by_close_date', - 'responsible', - ], - -]; - -$firstUploadFolder = '009_Punch_List/'; -$firstUploadTitle = 'Upload PDF'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/punch-summary.blade.php b/resources/views/admin/type/punch-summary.blade.php deleted file mode 100644 index 2bd6b0d..0000000 --- a/resources/views/admin/type/punch-summary.blade.php +++ /dev/null @@ -1,887 +0,0 @@ - - - - -
- -
-
-
-
-
-
-

{{e2("Total Punch")}}

-

-

-
-
-
-
-
-
-

{{e2("Open Punches")}}

-

-

-

-

-
-
-
-
-
-
-

{{e2("Closed Punches")}}

-

-

-

-

-
-
-
-
-
-
-

{{e2("Canceled Punches")}}

-

-

-

-

-
-
-
-
-
-
-

{{e2("Progress")}}

-

-

-
-
-
-
- -
-
-
-
-

{{e2("Punch Details Pivot")}}

-
-
-
-
-
-
-
- -
-
-
-
-

{{e2("Punch Status Breakdown by Category")}}

-
-
-
-
-
-
-
-
-
-

{{e2("Project vs Category Open/Closed")}}

-
-
-
-
-
-
-
- -
-
-
-
-

{{e2("Monthly Status by Area")}}

-
- - -
-
-
-
-
-
-
-
-
-
-
- - \ No newline at end of file diff --git a/resources/views/admin/type/pwht-akt.blade.php b/resources/views/admin/type/pwht-akt.blade.php deleted file mode 100644 index b60f1f0..0000000 --- a/resources/views/admin/type/pwht-akt.blade.php +++ /dev/null @@ -1,26 +0,0 @@ -paginate(setting('row_count')); -$tableName = "n_d_t_s"; - -$tableType = "datagrid"; - - -?> - - -
-
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/pwht-log.blade.php b/resources/views/admin/type/pwht-log.blade.php deleted file mode 100644 index f5542fa..0000000 --- a/resources/views/admin/type/pwht-log.blade.php +++ /dev/null @@ -1,137 +0,0 @@ -paginate(setting('row_count')); -$tableName = "p_w_h_t_s"; - - -$relationDatas = [ - 'report_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'pwht_result' => [ - 'datas' => db("results")->get(), - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ], -]; -$blockGroup = [ - 'Info' => [ - 'report_file', - 'contractor', - ], - 'Invoice' => [ - 'invoice_no', - 'invoice_date', - ], - 'Laboratory' => [ - 'test_laboratory_pwht', - - ], - 'Project' => [ - 'project', - - ], - 'Design' => [ - 'design_area', - 'line_specification', - 'line_number', - 'fluid_code', - 'service_category', - 'fluid_group', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - - ], - 'ISO Info' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_welds', - ], - 'Welding Info' => [ - 'welding_date', - 'wps_no', - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welder_1', - 'welder_2', - ], - 'Base Element Info' => [ - 'certificate_no', - 'wpq_report', - 'member_no_1', - 'material_no_1', - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'element_code_1', - 'member_no_2', - 'material_no_2', - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'element_code_2', - 'real_welder_1', - 'real_welder_2', - - ], - 'PWHT Info' => [ - 'pwht', - 'pwht_request_no', - 'pwht_request_date', - 'no_of_pwht_report', - 'pwht_date', - 'diagram_number_pwht', - 'pwht_operator', - 'pwht_operator_id', - 'pwht_result', - 'control_standart', - ], - - - - -]; - - -$firstUploadFolder = '004_QA/0007_PWHT/'; -$firstUploadTitle = 'Upload PDF'; -$uploadPermissionKey = 'pwht_log_upload_permission'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/register-creator-2.blade.php b/resources/views/admin/type/register-creator-2.blade.php deleted file mode 100644 index 405ce1e..0000000 --- a/resources/views/admin/type/register-creator-2.blade.php +++ /dev/null @@ -1,2193 +0,0 @@ - -
- -
-
-

{{e2($c->title)}}

-
-
-
-
- -
-
- - - -
-
-
- @csrf -
- - - @if(isAuth($id, "write") || isAuth($id, "full_control")) - @if(getisset("load")) - - @endif - - @endif -
-
-
-
-
- -
- - {{e2("Documents Panel")}} - - - @if(isAuth($id, "write")) - - {{e2("Create Dynamic Item")}} - - @endif -
- -
-
- -
-
-
-
{{e2("Selected Documents")}}
-
-
-
- -
- -
- -
    - -
-
-
-
- - -
-
-
-
{{e2("All Documents")}}
-
- - - -
-
-
- -
    - - - -
  • 👷 {{e2("Incoming Control Material")}} -
    - -
    {{e2("Incoming Control Material")}}
    - 002_Project_Materials/002_Material Certificate -
  • - -
  • 👷 {{e2("Naks Consumables Certificate")}} -
    - -
    {{e2("Naks Consumables Certificate")}}
    -
  • -
  • 👷 {{e2("Naks Consumables Inspection Test Report")}} -
    - 003_Welding_Database/0003_Naks_Consumables -
    {{e2("Naks Consumables Inspection Test Report")}}
    -
  • - -
  • 👷 {{e2("WPS NAKS Technology")}} -
    - 003_Welding_Database/0000_Naks%20Technology -
    {{e2("WPS NAKS Technology")}}
    -
  • - -
  • 👷 {{e2("Work Permit Documents")}} -
    - 005_PTO/01_Prikaz -
    Prikaz
    -
  • - -
  • 👷 {{e2($title . '_register_title')}} -
    - {{$drawings}} -
    Drawings
    - {{$drawings}} -
  • - -
  • 👷 {{e2($title . '_register_title')}} -
    - {{$materialFolder}} -
    Materials
    - {{$title}} -
  • - - @if( - strpos($qa, "Welding Experts") !== false || - strpos($qa, "Naks_Equipments") !== false || - strpos($qa, "Naks Technology") !== false - ) -
  • 👷 {{e2("Register Creator / " . $title)}} -
    - -
    Welding Database
    - {{$qa}} -
  • - @else -
  • 👷 {{e2("Register Creator / " . $title)}} -
    - -
    Welding Database
    - {{$qa}} -
  • - @endif - - - - @if( - strpos($qa, "Procedure") !== false - ) -
  • 📂 {{e2("Register Creator / " . $qa)}} -
    - -
    QA
    - {{$qa}} -
  • - @else -
  • 📂 {{e2("Register Creator / " . $qa)}} -
    -
    QA
    - {{$qa}} -
  • - @endif - - - where("type", "<>", "register")->get(); - $registers = db("document_templates")->where("type", "register")->get(); - foreach($templates AS $template) { - - ?> -
  • ✍️ {{e2("Document Template / " . $template->title)}}
    - Document Title (RU) : {{$template->title2}} - Document Register Title : {{$template->title3}} - {{$template->type}} - {{$template->kid}} - -
  • - - -
-
-
-
-
-
- -
-
- - {{e2("Total Lines")}}: - -
- -
-
-
-

{{e2("Configure Generator Info")}}

- - {{e2("Select Path")}} - -
-
{{e2("Generate Document All")}}
- -
- -
-
- - - -
- -
- - - - - - - -{{-- Edit Dynamic Item Modal --}} - - -{{-- Include Register Item Detail Handlers --}} -@include('admin.type.includes.register-item-detail-handlers') - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/resources/views/admin/type/register-creator.blade.php b/resources/views/admin/type/register-creator.blade.php deleted file mode 100644 index 294d9e1..0000000 --- a/resources/views/admin/type/register-creator.blade.php +++ /dev/null @@ -1,1416 +0,0 @@ - -
- -
-
-

{{e2($c->title)}}

-
-
-
-
- - @if(!is_null($progress)) - @foreach($progress AS $queueId => $data) -
-
-
-

Job Id: {{$queueId}} (by {{$data['user']?->name}})

-
{{e2("Waiting...")}}
-
-
-
- @if(isAuth('register-creator', 'write')) -
- -
- @endif -
-
- - @endforeach - @endif -
-
- - - -
-
-
- @csrf -
- - - @if(getisset("load")) - - @endif - -
-
-
-
-
- -
- - -
-
- -
- -
- -
- -
- -
- -
- - - - -
    - -
-
- -
- -
    - - - -
  • 👷 {{e2("Incoming Control Material")}} -
    - -
    {{e2("Incoming Control Material")}}
    -
  • - -
  • 👷 {{e2("Naks Consumables Certificate")}} -
    - -
    {{e2("Naks Consumables Certificate")}}
    -
  • -
  • 👷 {{e2("Naks Consumables Inspection Test Report")}} -
    - -
    {{e2("Naks Consumables Inspection Test Report")}}
    -
  • - -
  • 👷 {{e2("WPS NAKS Technology")}} -
    -
    {{e2("WPS NAKS Technology")}}
    -
  • - -
  • 👷 {{e2("Work Permit Documents")}} -
    - -
    Prikaz
    -
  • - -
  • 👷 {{e2($title . '_register_title')}} -
    - -
    Drawings
    - {{$drawings}} -
  • - -
  • 👷 {{e2($title . '_register_title')}} -
    - -
    Materials
    - {{$title}} -
  • - - @if( - strpos($qa, "Welding Experts") !== false || - strpos($qa, "Naks_Equipments") !== false || - strpos($qa, "Naks Technology") !== false - ) -
  • 👷 {{e2("Register Creator / " . $title)}} -
    - -
    Welding Database
    - {{$qa}} -
  • - @else -
  • 👷 {{e2("Register Creator / " . $title)}} -
    - -
    Welding Database
    - {{$qa}} -
  • - @endif - - - - @if( - strpos($qa, "Procedure") !== false - ) -
  • 📂 {{e2("Register Creator / " . $qa)}} -
    - -
    QA
    - {{$qa}} -
  • - @else -
  • 📂 {{e2("Register Creator / " . $qa)}} -
    -
    QA
    - {{$qa}} -
  • - @endif - - - where("type", "<>", "register")->get(); - $registers = db("document_templates")->where("type", "register")->get(); - foreach($templates AS $template) { - - ?> -
  • ✍️ {{e2("Document Template / " . $template->title)}}
    - Document Title (RU) : {{$template->title2}} - Document Register Title : {{$template->title3}} - {{$template->type}} - {{$template->kid}} - -
  • - - -
- -
-
-
-
- -
-
-
-
-

{{e2("Configure Generator Info")}}

- - {{e2("Select Path")}} - -
-
{{e2("Generate Document All")}}
- -
- -
-
- - - -
- -
- - - - - - - - - - - - - - - \ No newline at end of file diff --git a/resources/views/admin/type/register-item-creator.blade.php b/resources/views/admin/type/register-item-creator.blade.php deleted file mode 100644 index 2c5b8f3..0000000 --- a/resources/views/admin/type/register-item-creator.blade.php +++ /dev/null @@ -1,1824 +0,0 @@ -getColumnListing('weld_logs'); - -// Get all tables and their columns for autocomplete -$tables = Schema::getConnection()->getDoctrineSchemaManager()->listTableNames(); -$tablesWithColumns = []; - -foreach ($tables as $table) { - $columns = Schema::getColumnListing($table); - $tablesWithColumns[$table] = $columns; -} -?> - - - -
-
- - -
- - - - -
- -
-
- @csrf - - -
-
{{e2("Basic Information")}}
- -
-
-
- - - {{e2("Unique identifier for this dynamic item")}} -
-
- -
-
- - -
-
-
- -
- - -
- -
-
-
- - -
-
- -
-
- - -
-
- -
-
- - -
-
-
-
- - -
-
{{e2("Document Folder")}}
- -
- -
-
- storage/documents/ -
- -
- -
-
- {{e2("Select the folder where documents will be searched")}} -
-
- - -
-
{{e2("SQL Query Configuration")}}
- -
- - - -
SELECT - vt_report AS identifier, - vt_test_date AS document_date, - line_number -FROM weld_logs -WHERE line_number = :line_number -AND vt_report IS NOT NULL -GROUP BY vt_report -ORDER BY vt_test_date ASC
- - - - - - - {{e2("Use")}} :placeholder {{e2("for register data")}}. - {{e2("Type to see autocomplete suggestions")}}! - - - -
- {{e2("Available Placeholders")}}: -
- @foreach($registerColumns as $col) - - :{{$col}} - - @endforeach -
-
-
- -
-
-
- - - - {{e2("Which SQL result field to use as document identifier")}}. - {{e2("Example")}}: vt_report {{e2("or")}} identifier - -
-
- -
-
- - - - {{e2("Which SQL result field to use as document date")}}. - {{e2("Example")}}: vt_test_date {{e2("or")}} document_date - -
-
-
- - -
-
{{e2("Test Your Query")}}
-

{{e2("Enter test values for placeholders to verify your SQL query")}}

- -
- -
- - - - -
-
- - -
-
{{e2("File Search Pattern")}}
- -
- - - - {{e2("Use")}} {literal('{field_name}')} {{e2("for SQL result fields")}}. - {{e2("Examples")}}: - *{literal('{identifier}*.pdf')}, - *{literal('{report_no}*{line_number}*.pdf')} - -
-
- - -
-
{{e2("Title Configuration")}}
- -
- - - {{e2("Used as document identifier in lists")}} -
- -
- - - {{e2("This will be shown in Excel register (Russian)")}} -
- -
- - {{e2("Tip")}}: - {{e2("Use")}} {literal('{field_name}')} {{e2("to insert SQL result values")}}. - {{e2("Example")}}: {literal('Отчет РК №{report_no} от {test_date}')} - -
-
- - -
- - - {{e2("Cancel")}} - -
-
-
- - - -
-
- -
- -
-
- - - - -
-
-
-
- - - - - - - - - - - - - \ No newline at end of file diff --git a/resources/views/admin/type/register-of-experts.blade.php b/resources/views/admin/type/register-of-experts.blade.php deleted file mode 100644 index bd174b1..0000000 --- a/resources/views/admin/type/register-of-experts.blade.php +++ /dev/null @@ -1,299 +0,0 @@ - [ - 'type' => 'link-search', - 'html' => '' - ], - 'employees_id' => [ - 'table' => 'users', - 'datas' => db('users')->whereIn("level", ['Engineer', 'Formen'])->get(), - 'value' => 'id', - 'pattern' => '{name} / {name_ru}', - 'type' => 'select', - 'affected' => [ - 'name_ru' => '{name_ru}', - 'name_en' => '{name}', - 'date_of_birth' => '{date_of_birth}', - ] - ], - 'groups_of_technical_devices' => [ - 'datas' => db("hazard_classes")->groupBy("serial_number")->get(), - 'pattern' => '{serial_number}', - 'type' => 'multiple-choice' - ], - 'company' => [ - 'datas' => db("subcontractors")->get(), - 'pattern' => '{company_name_en}', - 'type' => 'select-dropdown' - ], - -]; - -$topButtons = []; -$topButtons[] = [ - 'href' => '?sync', - 'html' => ' ' . __("Sync Data From Emplooyes") -]; - -$blockGroup = [ - 'General Information' => [ - 'source_project', - 'download', - 'location', - 'company', - 'employees_id', - ], - 'Welder Information' => [ - 'name_ru', - 'name_en', - 'date_of_birth', - 'certificate_no', - 'welding_specialist_level', - 'groups_of_technical_devices', - 'date_of_attestation', - 'expration_of_the_certificate', - ], - 'Permit Info' => [ - 'permit_no', - 'permit_date', - 'comments', - ], -]; - -/* -$prependColumns = [ - 'Download' => [ - 'type' => 'link-search', - 'path' => '003_Welding_Database/0007_Welding Experts/', - 'pattern' => "{certificate_no}*.pdf", - 'html' => '' - ] -]; -*/ - -$firstUploadFolder = "003_Welding_Database/0007_Welding Experts"; -$firstUploadTitle = "Upload Register Of Experts Document"; - -$dataGridOptions = " -onToolbarPreparing: function(e) { - var toolbarItems = e.toolbarOptions.items; - var today = new Date(); - today.setHours(0,0,0,0); - - // Source Project Dropdown Filter - toolbarItems.unshift({ - location: 'before', - widget: 'dxSelectBox', - options: { - width: 200, - placeholder: 'Source Project', - showClearButton: true, - dataSource: { - store: { - type: 'array', - data: " . json_encode( - array_merge( - [['value' => '__this_project__', 'text' => '📍 This Project']], - DB::table('register_of_experts') - ->whereNotNull('source_project') - ->where('source_project', '!=', '') - ->groupBy('source_project') - ->pluck('source_project') - ->map(function($item) { - return ['value' => $item, 'text' => $item]; - }) - ->toArray() - ) - ) . ", - key: 'value' - } - }, - displayExpr: 'text', - valueExpr: 'value', - onValueChanged: function(args) { - if (args.value === '__this_project__') { - e.component.filter([['source_project', '=', null], 'or', ['source_project', '=', '']]); - } else if (args.value) { - e.component.filter(['source_project', '=', args.value]); - } else { - e.component.clearFilter('dataSource'); - } - } - } - }); - - // All Button - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'All', - icon: 'refresh', - stylingMode: 'text', - onClick: function() { - e.component.clearFilter(); - } - } - }); - - // Valid Button - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'Valid', - icon: 'check', - type: 'success', - stylingMode: 'contained', - onClick: function() { - e.component.filter(['expration_of_the_certificate', '>=', today]); - } - } - }); - - // Expired Button - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'Expired', - icon: 'remove', - type: 'danger', - stylingMode: 'contained', - onClick: function() { - e.component.filter(['expration_of_the_certificate', '<', today]); - } - } - }); -}, -"; - -?> - - -
-
-
- where("id",">", $lastId) - ->whereIn("level", job_descriptions()) - ->take(1000)->get(); - $count = 0; - - bilgi("Started ID :Id", "success", ['Id' => $lastId]); - - foreach($users AS $user) { - // dd($lineList); - $data = [ - 'employees_id' => $user->id, - 'name_ru' => $user->name_ru, - 'name_en' => $user->name, - 'date_of_birth' => $user->date_of_birth, - 'certificate_no' => $user->id, - // 'welding_specialist_level' => $user->date_of_birth, - // 'groups_of_technical_devices' => $user->date_of_birth, - // 'date_of_attestation' => $user->date_of_birth, - // 'expration_of_the_certificate' => $user->date_of_birth, - ]; - - RegisterOfExpert::updateOrCreate( - [ - 'employees_id' => $user->id - ], $data); - - Cache::put($cachePrefix, $user->id); - - $count++; - } - - bilgi(":count Data has been sync from Emplooyes", - "success", - ['count' => $count] - ); - - } - - - $listDatas = RegisterOfExpert::orderBy("id","DESC")->paginate(setting('row_count')); - ?> -
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/register.blade.php b/resources/views/admin/type/register.blade.php deleted file mode 100644 index 624bd88..0000000 --- a/resources/views/admin/type/register.blade.php +++ /dev/null @@ -1,145 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
-
-
-
-
-
-
- - -
- - - -
- -
- - - \ No newline at end of file diff --git a/resources/views/admin/type/repair-log.blade.php b/resources/views/admin/type/repair-log.blade.php deleted file mode 100644 index 251c1bb..0000000 --- a/resources/views/admin/type/repair-log.blade.php +++ /dev/null @@ -1,566 +0,0 @@ -where("repair_status", "Done") - ->whereNotNull("repair_date") - ->whereNotNull("new_joint_no") - ->get(); - - - - foreach($dones AS $done) { - - //db("weld_logs")-> - } - -} ?> -
-
-
-

{{e2($c->title)}}

-
-
- {{e2("Sync completed to Weldlog")}} - -
- -
- - - -
- -
- \ No newline at end of file diff --git a/resources/views/admin/type/repair-table.blade.php b/resources/views/admin/type/repair-table.blade.php deleted file mode 100644 index b132ea6..0000000 --- a/resources/views/admin/type/repair-table.blade.php +++ /dev/null @@ -1,1655 +0,0 @@ - true -]; - -if (getisset("send-mail")) { - $styles = " - - "; - $fileName = "Repair Table Summary " . $reportDate->format("d.m.Y H:i:s"); - $img_url = url(base64_to_jpeg(post("html"), "storage/app/files/$fileName.jpg")); - $showLink = generate_hash_link("repair-table"); - $link = "Open this report in your browser"; - $html = $styles . "$link
"; - //$html = str_replace("Loading...", "", $html); - $summaryMails = explode(",", setting("summary_mails")); - $k = 0; - foreach ($summaryMails as $mail) { - $mail = trim($mail); - mailSend($mail, "Repair Table Summary " . $reportDate->format("d.m.Y"), $html); - $k++; - } - echo __("A total of :count summaries were sent to e-mails. The emails sent are as follows: :mails", [ - 'mails' => implode(", ", $summaryMails), - 'count' => $k - ]); - exit(); - -} -?> - - - - - - - - - - - - -
-
-
-
- - - - - - -
- - - - - {{e2("Report Date")}}
- {{$reportDate->format("d.m.Y")}} -
-
-
- - -
-
-
- - - -
-
-
- - -
-
-
- Select sections to export: -
- - - -
-
-
-
- -
-
-
-
-

Most Common Defect Type

-
-
-
-
-
-
-
-
-
-
- @include("admin.type.summary.repair-rate-all") -
-
-
-
-
-
- - -
-
-
-

Defect Type by Welder

-
-
-
-
-
-
-
- - -
-
-
-

Welder Based Repair Ratio Distribution

-
-
-
- -
-
-
- -
-
-
-

Defect Type by NPS

-
-
-
-
-
-
- -
-
-
-

Defect Type by Material

-
-
-
-
-
-
- -
-
-
-

Subcontractor RT/UT Repair Rate Analysis

-
-
-
- -
-
-
- - -
-
-
-

Weekly Status BW Joints

-
-
-
-
-
- -
-
-
- -
- - - -
-
-
-
-
-
-
-
- -
-
-
-

Weekly Status SW Joints

-
-
-
-
-
- -
-
-
- -
- - - -
-
-
-
-
-
-
-
-
- -
-
\ No newline at end of file diff --git a/resources/views/admin/type/report-builder.blade.php b/resources/views/admin/type/report-builder.blade.php deleted file mode 100644 index 3919a5d..0000000 --- a/resources/views/admin/type/report-builder.blade.php +++ /dev/null @@ -1,91 +0,0 @@ -where("id", post("documentId")) - ->update([ - 'fields' => $fields - ]); - dump($fields); - exit(); - -} ?> -@include("admin.type.report-builder.state-handler") -@include("admin.type.report-builder.styles") -@include("admin.type.report-builder.toggle-script") -
-
-
-

{{e2($c->title)}}

-
- -
-
-
-
-
- @include("admin.type.report-builder.diagram") -
-
- @include("admin.type.report-builder.sql-builder-panel") -
- -
-
- -
-
-
- @include("admin.type.report-builder.column-items") -
-
-
-
-
-
- -
-
-
- - @include("admin.type.report-builder.document-selection") -
-
- -
- @include("admin.type.report-builder.row-selection") -
-
- - @include("admin.type.report-builder.pdf-preview") -
-
-
-
-
- -
- - - -
- -
-
\ No newline at end of file diff --git a/resources/views/admin/type/request-ndt.blade.php b/resources/views/admin/type/request-ndt.blade.php deleted file mode 100644 index 3cef3b7..0000000 --- a/resources/views/admin/type/request-ndt.blade.php +++ /dev/null @@ -1,415 +0,0 @@ - - - - - - -
-
- {{col("col-md-3 d-none", "Filter", 0, ['no-options' => true])}} - -
- {{e2("Date")}} -
- - - -
- {{e2("Request Date")}} -
- - - -
- {{e2("Subcontractor")}} - - - {{e2("Location")}} - - - - -
- - {{_col()}} - {{col("col-md-12", "List", 0, ['no-options' => true])}} - -
- - - {{_col()}} - - - -
-
\ No newline at end of file diff --git a/resources/views/admin/type/rfi-creator.blade.php b/resources/views/admin/type/rfi-creator.blade.php deleted file mode 100644 index a727ed6..0000000 --- a/resources/views/admin/type/rfi-creator.blade.php +++ /dev/null @@ -1,92 +0,0 @@ -files; - -$tableName = "r_f_i_s"; -$title = $templateInfo->title; -$outputFilePath = "006_RFI/"; -$outputFileName = "rfi_no"; - -$numberColumn = "rfi_no"; - - -$relationDatas = [ - 'subcontractor' => db("subcontractors")->select("company_name_ru")->get()->pluck("company_name_ru")->toArray(), - 'thirdparty' => db("subcontractors")->select("company_name_ru")->get()->pluck("company_name_ru")->toArray(), - 'contractor' => db("subcontractors")->select("company_name_ru")->get()->pluck("company_name_ru")->toArray(), - 'itp' => db("i_t_p_s")->groupBy("itp_no")->get()->pluck("itp_no")->toArray(), - ]; - ?> - - @if(isAdmin()) - {{col("col-12","")}} - - {{_col()}} - @endif -@include("admin.type.inc.excel-form-templates") - -@if(getesit("type", "RFI_Type2")) - -@endif diff --git a/resources/views/admin/type/rfi-creator2.blade.php b/resources/views/admin/type/rfi-creator2.blade.php deleted file mode 100644 index 6f64b51..0000000 --- a/resources/views/admin/type/rfi-creator2.blade.php +++ /dev/null @@ -1,171 +0,0 @@ -json); - $post = $_POST; - unset($post['_token']); - unset($post['document_id']); - unset($post['html']); - - - $document = pdf_html_content(urldecode(post("html"))); - foreach($post AS $field => $value) - { - if(strpos($field, "date") !== false) { - $value = date("d.m.Y", strtotime($value)); - } - $document = str_replace("{{$field}}", $value, $document); - } - - $path = $documentInfo->kid; - - $fileName = $post['rfi_no']; - - $path = "$path/$fileName"; - html_create($path, $document, $j['paper']); - - unset($post['custom']); - - db("r_f_i_s")->updateOrInsert([ - 'rfi_no' => $post['rfi_no'] - ], $post); - - $fullPath = url("storage/documents/$path"); - echo "Download PDF File"; - exit(); - - - -} -$rfiDocs = db("document_templates")->where("type", "rfi")->get() ?> -
-
- {{col("col-12","")}} - - {{_col()}} - @if(!getesit("select", "")) - where("id", get("select"))->first(); - $relationDatas = [ - 'subcontractor' => db("subcontractors")->select("company_name_ru")->get()->pluck("company_name_ru")->toArray(), - 'thirdparty' => db("subcontractors")->select("company_name_ru")->get()->pluck("company_name_ru")->toArray(), - 'contractor' => db("subcontractors")->select("company_name_ru")->get()->pluck("company_name_ru")->toArray(), - 'itp' => db("i_t_p_s")->groupBy("itp_no")->get()->pluck("itp_no")->toArray(), - ]; - $formHtml = replacePlaceholdersWithInputs($doc->html, $relationDatas); - ?> - {{col("col-12",$doc->title)}} - -
- - @csrf - - -
- - {{_col()}} - @endif -
-
- diff --git a/resources/views/admin/type/rfi-dashboard.blade.php b/resources/views/admin/type/rfi-dashboard.blade.php deleted file mode 100644 index e664aa0..0000000 --- a/resources/views/admin/type/rfi-dashboard.blade.php +++ /dev/null @@ -1,156 +0,0 @@ - -
-
- {{col("col-md-4","RFI Summary")}} -
- {{_col()}} - {{col("col-md-4","Subcontractor")}} -
- {{_col()}} - {{col("col-md-4","RFI Opening Period")}} -
- {{_col()}} - {{col("col-12","RFI Summary Chart")}} -
- {{_col()}} - {{col("col-md-6","RFI Summary Pie Chart")}} -
- {{_col()}} - {{col("col-md-6","RFI Subcontractor Pie Chart")}} -
- {{_col()}} - -
-
- - \ No newline at end of file diff --git a/resources/views/admin/type/rfi-kanban.blade.php b/resources/views/admin/type/rfi-kanban.blade.php deleted file mode 100644 index e5eac6d..0000000 --- a/resources/views/admin/type/rfi-kanban.blade.php +++ /dev/null @@ -1,270 +0,0 @@ -groupBy("discipline_title")->get()->pluck("discipline_title")->toArray(); ?> -whereNotIn("job_description", ['ENGINEERING', 'CONSTRUCTION','EMPLOYER']) - ->groupBy("company_name_en")->get()->pluck("company_name_en")->toArray(); ?> -
-
-
-

{{e2($c->title)}}

-
-
-
- - - - - -
- - -
-
-
-
-
-
- - - - - - -
- -
- \ No newline at end of file diff --git a/resources/views/admin/type/rfi-logs.blade.php b/resources/views/admin/type/rfi-logs.blade.php deleted file mode 100644 index 40fc436..0000000 --- a/resources/views/admin/type/rfi-logs.blade.php +++ /dev/null @@ -1,263 +0,0 @@ -paginate(setting('row_count')); -$tableName = "r_f_i_s"; - -$prependColumns = []; - -$relationDatas = [ - 'created_rfi' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'signed_rfi' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'status' => [ - 'values' => j(setting("rfi-status")), - 'type' => 'manuel-select', - 'default' => 'Inspection Waiting' - ], - - 'discipline' => [ - 'values' => db("disciplines")->groupBy("discipline_title")->get()->pluck("discipline_title")->toArray(), - 'type' => 'manuel-select' - ], - - 'itp' => [ - 'values' => db("i_t_p_s")->groupBy("itp_no")->get()->pluck("itp_no")->toArray(), - 'type' => 'manuel-select', - - ], - 'subcontractor' => [ - 'values' => db("subcontractors") - ->whereNotIn("job_description", ['ENGINEERING', 'CONSTRUCTION','EMPLOYER']) - ->groupBy("company_name_en")->get()->pluck("company_name_en")->toArray(), - 'type' => 'manuel-select', - - ], - 'contractor' => [ - 'values' => db("subcontractors") - ->whereIn("job_description", ['ENGINEERING', 'CONSTRUCTION','EMPLOYER']) - ->groupBy("company_name_en") - ->get()->pluck("company_name_en")->toArray(), - 'type' => 'manuel-select', - ], - 'thirdparty' => [ - 'values' => db("subcontractors") - ->whereIn("job_description", ['ENGINEERING', 'CONSTRUCTION','EMPLOYER']) - ->groupBy("company_name_en") - ->get()->pluck("company_name_en")->toArray(), - 'type' => 'manuel-select', - ], - 'company' => [ - 'values' => db("subcontractors") - ->whereIn("job_description", ['ENGINEERING', 'CONSTRUCTION','EMPLOYER']) - ->groupBy("company_name_en") - ->get()->pluck("company_name_en")->toArray(), - 'type' => 'manuel-select', - ], - 'qc_activity' => [ - 'values' => db("q_c_activities") - ->get() - ->pluck("title") - ->toArray(), - 'type' => 'manuel-select', - ], - /* - 'unit' => [ - 'values' => db("weld_logs") - ->groupBy("design_area") - ->get()->pluck("design_area")->toArray(), - 'type' => 'manuel-select', - ], - */ - 'the_period_between' => [ - 'values' => [ - 'Daily', - 'Weekly', - 'Monthly', - ], - 'type' => 'manuel-select', - - ], - -]; - -$blockGroup = [ - - 'Preparation' => [ - 'created_rfi', - 'signed_rfi', - 'preparing_date', - 'preparing_time', - 'project_no', - 'itp', - 'discipline', - 'rfi_no', - ], - 'Responsibility' => [ - - 'inspection_date', - 'inspection_time', - 'the_period_between', - 'subcontractor', - 'subcontractor_responsiable', - 'contractor', - 'contractor_responsiable_1', - 'thirdparty', - 'thirdparty_responsiable_2', - 'company', - 'company_responsiable_3', - ], - 'Location' => [ - 'unit', - 'area', - 'location', - ], - 'Inspection' => [ - - 'qc_activity', - 'phase', - 'item', - 'description', - 'description_ru', - 'working_documents', - 'system', - 'subsystem', - ], - 'Inspection Steps' => [ - 'sub', - 'ste', - 'cas', - 'mf', - ], - 'Project Details' => [ - 'revision', - 'revision_reasions', - 'result_date', - 'status', - 'remarks', - ], -]; - -$dataGridOptions = ' -onCellValueChanged: function(e) { - console.log("onCellValueChanged"); - if (e.column.dataField === "discipline") { - var rowIndex = e.row.rowIndex; - var rowData = e.data; - - $.getJSON("?ajax=get-rfi-no&discipline=" + rowData.discipline, function(d) { - d = d.trim(); - var dataGrid = $("#dataGrid").dxDataGrid("instance"); - dataGrid.cellValue(rowIndex, "rfi_no", d); - }); - } -}, -onContentReady: function(e) { - var dataGrid = e.component; - if (typeof window.setupJointLogPopupHelpers === "function") { - window.setupJointLogPopupHelpers(dataGrid); - window.attachJointLogMagnifier("rfi_no"); - } -}, -'; - - -$path = "006_RFI"; -$prependColumns = []; - -$firstUploadFolder = $path . "/001_Created_RFI"; -$firstUploadTitle = "Upload Created RFI"; - -$secondUploadFolder = $path . "/002_Signed_RFI"; -$secondUploadTitle = "Upload Signed RFI"; - -$uploadPermissionKey = 'rfi_log_upload_permission'; - -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") - @include("components.joint-release-popup") -
-
- diff --git a/resources/views/admin/type/rt-log.blade.php b/resources/views/admin/type/rt-log.blade.php deleted file mode 100644 index 4a15a76..0000000 --- a/resources/views/admin/type/rt-log.blade.php +++ /dev/null @@ -1,158 +0,0 @@ -paginate(setting('row_count')); -$tableName = "radiographic_tests"; - -//$tableType = "datagrid"; - -$relationDatas = [ - 'report_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'rt_result' => [ - 'datas' => [], - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ], -]; -$blockGroup = [ - 'Info' => [ - 'report_file', - 'contractor', - ], - - 'Invoice' => [ - 'invoice_number', - 'invoice_date', - ], - 'Laboratory' => [ - 'test_laboratory_rt', - - ], - 'Project' => [ - 'project', - - ], - 'Design' => [ - 'design_area', - 'line_specification', - 'line_number', - 'fluid_code', - 'service_category', - 'fluid_group', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - - ], - 'ISO Info' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_welds', - ], - 'Welding Info' => [ - 'welding_date', - 'wps_no', - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welder_1', - 'welder_2', - ], - 'Element Info' => [ - 'certificate_no_1', - 'wpq_report_1', - 'certificate_no_2', - 'wpq_report_2', - 'member_no_1', - 'material_no_1', - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'element_code_1', - 'member_no_2', - 'material_no_2', - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'element_code_2', - ], - 'RT Info' => [ - 'rt_scope', - 'rt_request_no', - 'rt_request_date', - 'rt_report', - 'rt_test_date', - 'rt_result', - 'control_standart', - 'tester_name', - 'real_welder_1', - 'real_welder_2', - - ], - 'Other' => [ - 'aa', - 'ab', - 'ac', - 'ba', - 'bb', - 'bc', - 'ca', - 'cb', - 'cc', - 'da', - 'db', - 'dc', - 'ea', - 'eb', - 'ec', - 'fa', - 'fb', - 'fc', - 'other', - ], - - - -]; - -$firstUploadFolder = '004_QA/0001_RT/'; -$firstUploadTitle = 'Upload PDF'; -$uploadPermissionKey = 'rt_log_upload_permission'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/spool-area-release.blade.php b/resources/views/admin/type/spool-area-release.blade.php deleted file mode 100644 index 63d0cc1..0000000 --- a/resources/views/admin/type/spool-area-release.blade.php +++ /dev/null @@ -1,1005 +0,0 @@ -distinct() - ->pluck('record_id') - ->toArray(); - } - } -} -?> - -
-
-
-

{{e2($c->title)}}

-
-
- -
-
- - - -
- -
- - - - - - - - - - - - - - diff --git a/resources/views/admin/type/spool-release-ndt.blade.php b/resources/views/admin/type/spool-release-ndt.blade.php deleted file mode 100644 index 518e144..0000000 --- a/resources/views/admin/type/spool-release-ndt.blade.php +++ /dev/null @@ -1,68 +0,0 @@ -@php - $spoolReleaseNdtData = include resource_path('views/admin/type/spool-release/ndt/setup-data.php'); - extract($spoolReleaseNdtData); -@endphp - -
- -
-
-
-
-
-
- -
- -
-
-
-
-
- - -
-
- @include("admin.type.spool-release.ndt.sidebar", compact('field')) -
-
- @include("admin.type.spool-release.ndt.info-panel", compact('field', 'weldInfos', 'paintInfos', 'showReleaseButton')) -
-
-
- - - diff --git a/resources/views/admin/type/spool-release-paint-old.blade.php b/resources/views/admin/type/spool-release-paint-old.blade.php deleted file mode 100644 index d578d35..0000000 --- a/resources/views/admin/type/spool-release-paint-old.blade.php +++ /dev/null @@ -1,197 +0,0 @@ -subcontructer; - -$paint_release_number_pattern = setting("paint_release_number_pattern"); - -if(getisset("checklist-ok")) { - if(!getesit("iso_number","")) { - $result = db("weld_logs") - ->where("iso_number", get("iso_number")) - ->where("spool_number", get("spool_number")) - ->update([ - "spool_paint_check" => u()->id - ]); - bilgi(":result row sign check", "success", ['result'=> $result]); - } - -} - - -?> -where("spool_status", "Paint"); - $get = $_GET; - unset($get['ndt_paint_release']); - unset($get['ndt_release']); - unset($get['rollback']); - - foreach($get AS $col => $value) { - if($value!="") - { - if(is_array($value)) { - $paintInfos = $paintInfos->whereIn($col, $value); - } else { - - $paintInfos = $paintInfos->where($col, trim($value)); - } - } - } - - - - if(!getesit("ndt_paint_release", "")) { - - $newRequestNo = $paint_release_number_pattern; - $newRequestNo = str_replace("{number}",date("ynjg"), $newRequestNo); - - $ndtReleaseUpdate = $paintInfos; - $ndtReleaseUpdate = $ndtReleaseUpdate->whereNotNull("welding_date")->whereNotNull("painting_cycle"); - $ndtReleaseUpdate = $ndtReleaseUpdate->update([ - "paint_release_no" => $newRequestNo, - "paint_release_date" => Carbon::now(), - 'spool_status' => "Completed", - ]); - bilgi(":count Row affected", "info", ['count' => $ndtReleaseUpdate]); - - } - - - - - $paintInfos = $paintInfos->get(); - - $showReleaseButton = false; - if(isset($paintInfos[0])) { - if($paintInfos[0]->spool_paint_check != "") { - $showReleaseButton = true; - } - } -} - - ?> -@include("admin.type.spool-release.rollback") - - - - -
-
- {{col("col-md-4","Spool List", 0, ['no-options'=>true])}} - - - @include("admin.type.spool-release.spool-list") - - {{_col()}} - {{col("col-md-4","Paint Info", 0, ['no-options'=>true])}} - -
-
-
- {{e2("Iso Number")}}: - -
- -
- - {{e2("SPL")}}: - -
- -
- groupBy("painting_cycle") - ->select("painting_cycle") - ->whereNotNull("painting_cycle") - ->where("iso_number", get("iso_number")) - ->get(); - - - - ?> - @if($paintingCycles) - {{e2("Painting Cycle")}}: - -
{{$paintingCycle->painting_cycle}}
- - @endif - -
-
- -
- -
- - @if($showReleaseButton) - {{e2("NDT & Paint Release")}} - @endif - -
- - -
- -
- @if(!getesit("iso_number","")) - @include("admin.type.spool-release.paint-info") - @endif - - {{_col()}} - {{col("col-md-4","Paint List", 0, ['no-options'=>true])}} - @include("admin.type.spool-release.ndt-release-paint-list") - {{_col()}} - - - - -
-
\ No newline at end of file diff --git a/resources/views/admin/type/spool-release-paint.blade.php b/resources/views/admin/type/spool-release-paint.blade.php deleted file mode 100644 index f0190fe..0000000 --- a/resources/views/admin/type/spool-release-paint.blade.php +++ /dev/null @@ -1,4 +0,0 @@ - -@include("admin.type.spool-release-ndt") \ No newline at end of file diff --git a/resources/views/admin/type/spool-release-wizard.blade.php b/resources/views/admin/type/spool-release-wizard.blade.php deleted file mode 100644 index dcbe7ea..0000000 --- a/resources/views/admin/type/spool-release-wizard.blade.php +++ /dev/null @@ -1,15 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
- -
- - - -
- -
- \ No newline at end of file diff --git a/resources/views/admin/type/spool-release.blade.php b/resources/views/admin/type/spool-release.blade.php deleted file mode 100644 index 473ce95..0000000 --- a/resources/views/admin/type/spool-release.blade.php +++ /dev/null @@ -1 +0,0 @@ -@include("admin.type.spool-release-ndt") \ No newline at end of file diff --git a/resources/views/admin/type/subcontractor.blade.php b/resources/views/admin/type/subcontractor.blade.php deleted file mode 100644 index 5ae9e99..0000000 --- a/resources/views/admin/type/subcontractor.blade.php +++ /dev/null @@ -1,59 +0,0 @@ - [ - 'company_name_en', - 'company_name_ru', - 'company_code', - 'sign_order', - - - ], - 'Job Information' => [ - 'job_description', - 'operation_type', - ], - 'Address Information' => [ - 'city', - 'logo', - 'tax', - 'address_ru', - 'tax2', - 'address_ru2', - 'address_en', - 'project_city_ru', - 'project_city_en', - ] - ]; -$listDatas = Subcontractor::orderBy("id","DESC") - ->paginate(setting('row_count')); -$tableName = "subcontractors"; - - - -$relationDatas = [ - 'job_description' => [ - 'datas' => db("job_descriptions")->get(), - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ], -]; - -?> -
-
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/summary-nocache.blade.php b/resources/views/admin/type/summary-nocache.blade.php deleted file mode 100644 index 7d1b264..0000000 --- a/resources/views/admin/type/summary-nocache.blade.php +++ /dev/null @@ -1,1270 +0,0 @@ - true -]; -$color = 10; - -$yesterday = Carbon::yesterday(); -$today = Carbon::yesterday(); -$reportDate = Carbon::today(); - -$projects = active_projects(); - - -$allStatsData = - json_decode( - view("admin-ajax/spool-area-release") - ->render(), - true - ); - -if (!is_array($allStatsData)) { - $allStatsData = []; -} - -$spoolStatus = ['Waiting', 'On Going', 'Spool Release', 'NDT Release', 'Paint', 'Completed']; -$stats = isset($allStatsData['summary']) && is_array($allStatsData['summary']) ? $allStatsData['summary'] : []; - - -if (getisset("send-mail")) { - $styles = " - - "; - $fileName = "Weld Summary " . $reportDate->format("d.m.Y H:i:s"); - $img_url = url(base64_to_jpeg(post("html"), "storage/app/files/$fileName.jpg")); - $showLink = generate_hash_link("summary", "Weld Summary Report"); - $link = "Open this report in your browser "; - $html = $styles . "$link
"; - $summaryMails = explode(",", setting("summary_mails")); - $k = 0; - foreach ($summaryMails as $mail) { - $mail = trim($mail); - mailSend($mail, "Weld Summary Report", $html); - $k++; - } - echo __("A total of :count summaries were sent to e-mails. The emails sent are as follows: :mails", [ - 'mails' => implode(", ", $summaryMails), - 'count' => $k - ]); - exit(); - -} - - - ?> - - - - - - - - - - - - - -
-
- - -
-
-
- Select sections to export - -
- - -
-
-
- -
-
-
- - - - - - -
- {{e2("Report Date")}}
- {{$reportDate->format("d.m.Y")}} -
-
- - @include("admin.type.summary.all-projects") - - @include("admin.type.summary.each-projects") - - @include("admin.type.summary.ndt-summary") - - - -
-
-

Spool Status

-
-
- - - - - - - $count) { - $statsData[$statusName] = $count; - if ($statusName == "Completed") { - $completedTotal = $count; - } -} - ?> - - - - - - - - - - - - - 0) ? round($completedTotal * 100 / $totalCount, 2) : 0; -} catch (\Throwable $th) { - $completedPercent = 0; -} - ?> -
{{e2("Status")}}{{e2("Count")}}{{e2("%")}}
{{$spoolStat}} 0) ? round($statsData[$spoolStat] * 100 / $totalCount, 2) : 0; - } catch (\Throwable $th) { - $avgSpoolStats = 0; - } - ?>%{{$avgSpoolStats}}
{{e2("Total Spools")}}{{$totalCount}}%100
-
-
- -
-
-

NDT BACKLOG - STELLAR

-
-
-
- -
-
- -
-
-

REPAIR BACKLOG - STELLAR

-
-
- - - - - - - - - - - - - - - -
TYPE of EXAMINATIONBACKLOG
REPAIR BACKLOG
-
-
- -
-
-

Joint Type Installation Progress

-
-
-
- -
-
- -
-
-

Subcontractor Repair Analysis

-
-
- @include("admin-ajax.summary.subcontractor-repair-analysis") -
-
- -
-
-

Welder Summary - STE

-
-
-
- -
-
-
-
-
\ No newline at end of file diff --git a/resources/views/admin/type/summary.blade.php b/resources/views/admin/type/summary.blade.php deleted file mode 100644 index c947aad..0000000 --- a/resources/views/admin/type/summary.blade.php +++ /dev/null @@ -1,7 +0,0 @@ - diff --git a/resources/views/admin/type/support.blade.php b/resources/views/admin/type/support.blade.php deleted file mode 100644 index 3cb1db6..0000000 --- a/resources/views/admin/type/support.blade.php +++ /dev/null @@ -1,167 +0,0 @@ -paginate(setting('row_count')); -$tableName = "supports"; - -$requiredFields = [ - 'zone', -]; -$erectionTypes = j(setting("erection_type")) ?? []; -$erectionMaterialNames = j(setting("erection_materials_name")) ?? []; - - - -$relationDatas = [ - 'download' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'materials' => [ - 'values' => db("materials")->get()->pluck("steel_grade")->toArray(), - 'type' => 'manuel-select' - ], - 'erection_type' => [ - 'values' => $erectionTypes, - 'type' => 'manuel-select' - ], - 'erection_materials_name' => [ - 'values' => $erectionMaterialNames, - 'type' => 'manuel-select' - ], - 'designer' => [ - 'datas' => db("subcontractors")->where("job_description", "ENGINEERING")->get(), - 'pattern' => '{company_name_en}', - 'type' => 'select-dropdown' - ], - 'style' => [ - 'values' => ['Standart', 'Special'], - 'type' => 'manuel-select' - ], - - /* - 'welded_pad_measure' => [ - 'values' => ['200x100', '2*200x100', '3*200x100'], - 'type' => 'manuel-select' - ], - */ -]; - -$blockGroup = [ - /* - 'download' => [ - 'type' => 'link-search', - 'html' => '' - ], - */ - 'General Info' => [ - 'download', - 'designer', - 'erection_materials_name', - 'dwg_no', - 'support_code', - 'status', - 'rev', - ], - 'Material Info' => [ - 'materials', - 'pipe_dia', - 'welded_pad_measure', - 'thickness', - 'ancillary', - 'element_no', - ], - 'Location Info' => [ - 'erection_type', - 'zone', - ], - 'Drawing Info' => [ - 'line_number', - 'drawing_no', - 'standart', - 'elevation', - ], - 'Quantity Info' => [ - 'quantity', - 'unit_weight', - 'assembled_su_rt_quanti', - ], - 'Date Info' => [ - 'weld_or_assembled_date', - ], - 'Weight Info' => [ - 'total_weight', - ], - 'Remarks' => [ - 'remarks', - ], -]; - -$firstUploadFolder = '001_Drawings/004_Support/'; -$firstUploadTitle = 'Upload PDF'; - - -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
- - \ No newline at end of file diff --git a/resources/views/admin/type/technology-summary.blade.php b/resources/views/admin/type/technology-summary.blade.php deleted file mode 100644 index a52c0a3..0000000 --- a/resources/views/admin/type/technology-summary.blade.php +++ /dev/null @@ -1,69 +0,0 @@ - [ - 'type' => 'link-search', - 'path' => '003_Welding_Database/0000_Naks Technology/', - 'pattern' => "{short_number}*{certificate_no}*.pdf", - 'html' => '' - ], - 'Certificate No' => [ - 'type' => 'text', - 'pattern' => "{short_number}-{certificate_no}" - ], - 'Material Group' => [ - 'type' => 'text', - 'pattern' => "{mat_group_1} + {mat_group_2}" - ], - 'Certification Loc' => [ - 'type' => 'text', - 'pattern' => "{short_name}" - ] -]; - -$summaryTable = true; - -// Block group definition, grouped by subject -$blockGroup = [ - 'Certificate Information' => [ - 'short_number', - 'certificate_no', - ], - 'Welding Details' => [ - 'welding_method', - 'technology_category', - 'mat_group_1', - 'mat_group_2', - 'work_type', - 'pwht', - ], - 'Validity' => [ - 'valid_to', - 'valid_from', - ] -]; - -?> - -
-
- @include("components.blocks.module-block") -
-
diff --git a/resources/views/admin/type/test-pack-base-status.blade.php b/resources/views/admin/type/test-pack-base-status.blade.php deleted file mode 100644 index 0483ebe..0000000 --- a/resources/views/admin/type/test-pack-base-status.blade.php +++ /dev/null @@ -1,352 +0,0 @@ -paginate(setting('row_count')); -$tableName = "test_packages"; - -$relationDatas = [ - 'punch_list_download' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'test_pack_download' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'reinstatement_status' => [ - 'values' => [ - 'Accepted', - 'Rejected', - 'In Progress', - 'Reviewed', - ], - 'type' => 'manuel-select' - ], - 'subcontractor' => [ - 'values' => db("subcontractors") - ->select("company_name_en") - ->whereIn("job_description",['Montaj']) - ->get()->pluck("company_name_en")->toArray(), - 'type' => 'manuel-select' - ], - 'cleaning_blowing_drying_status' => [ - 'values' => [ - 'Accepted', - 'Rejected', - 'In Progress', - 'Reviewed', - ], - 'type' => 'manuel-select' - ], - 'ndt_status' => [ - 'values' => [ - 'Accepted', - 'Not Accepted', - ], - 'type' => 'manuel-select' - ], - 'status' => [ - 'values' => [ - 'Approved', - 'Rejected', - 'Canceled', - ], - 'type' => 'manuel-select' - ], - 'test_status' => [ - 'values' => [ - 'Tested', - 'Not Tested', - ], - 'type' => 'manuel-select' - ], - 'leakage' => [ - 'values' => [ - 'YES', - 'NO', - ], - 'type' => 'manuel-select' - ], -]; -/* -'unit', - - - - - - -*/ -$blockGroup = [ - 'General Info' => [ - 'punch_list_download', - 'test_pack_download', - 'discipline', - 'test_package_number', - 'isolation', - 'tracing', - 'circuit_number', - 'p_id', - 'iso_quantity', - 'subcontractor', - 'responsible_person', - - ], - 'General Status' => [ - 'tp_general_status', - ], - 'Welding Process' => [ - 'welding_status', - 'total_wdi', - 'total_complated_wdi', - 'welding_progress', - 'total_shop_wdi', - 'total_complated_shop_wdi', - 'total_field_wdi', - 'total_complated_field_wdi', - ], - 'Test Info' => [ - 'test_type', - 'test_medium', - 'test_pressure', - 'planned_test', - 'responsible_test', - 'priority', - 'priority_info', - 'rfi_no', - 'rfi_date', - 'test_status', - 'test_date', - 'leakage_test_pressure', - 'leakage', - 'leakage_test_date', - ], - 'Golden Joints' => [ - 'golden_joints', - ], - 'Test Pack Status' => [ - 'test_package_sent_date', - 'status', - 'test_package_approval_date', - ], - 'Test Pack Punch List' => [ - 'walkdown_date', - 'punch_status', - 'punch_list', - 'a_punch_point_open', - 'b_punch_point_open', - 'c_punch_point_open', - ], - 'QC' => [ - 'received_by_qc', - ], - 'NDT Logs' => [ - 'ndt_status', - 'vt_backlog', - 'rt_backlog', - 'ut_backlog', - 'mt_backlog', - 'pmi_backlog', - 'pt_backlog', - 'ferrit_backlog', - 'pwht_backlog', - ], - 'Support Process' => [ - 'support_progress', - 'support_remaining', - 'welded_support_quantity', - - ], - 'Repair' => [ - // 'repair_status_total', - 'repair_qty', - 'repair_completed', - 'repair_remaining', - ], - 'Cleaning' => [ - 'cleaning_blowing_drying_rfi', - 'responsible_cleaning', - 'cleaning_blowing_drying_status', - 'cleaning_blowing_drying_date', - 'cleaning_blowing_drying_rfi_no', - ], - 'Reinstatement' => [ - 'reinstatement_rfi', - 'responsible_reinstatement', - 'reinstatement_status', - 'reinstatement_date', - 'cw', - 'system_combine', - 'planned_test_date', - 'remarks', - ], -]; - -/* -'test_package_number', - 'circuit_number', - 'p_id', - 'iso_quantity', - 'subcontractor', - 'welding_status', - 'total_wdi', - 'total_complated_wdi', - 'total_shop_wdi', - 'total_complated_shop_wdi', - 'total_field_wdi', - 'total_complated_field_wdi', - 'test_type', - 'test_medium', - 'test_pressure', - 'golden_joints', - 'tp_general_status', - 'test_package_sent_date', - 'status', - 'test_package_approval_date', - 'walkdown_date', - 'punch_list', - 'a_punch_point_open', - 'b_punch_point_open', - 'c_punch_point_open', - 'received_by_qc', - 'ndt_status', - 'repair_status_total', - 'planned_test', - 'responsible_test', - 'rfi_no', - 'rfi_date', - 'test_status', - 'cleaning_blowing_drying_rfi', - 'responsible_cleaning', - 'cleaning_blowing_drying_status', - ' ', - 'cleaning_blowing_drying_rfi_no', - 'reinstatement_rfi', - 'responsible_reinstatement', - 'reinstatement_status', - 'reinstatement_date', - 'cw', - 'priority', - 'priority_info', - 'system_combine', - 'planned_test_date', -*/ - -$firstUploadFolder = '008_Test_Pack/002_TP_(Scan)/'; -$firstUploadTitle = 'Upload Scan PDF'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
diff --git a/resources/views/admin/type/test-pack-iso-base-status.blade.php b/resources/views/admin/type/test-pack-iso-base-status.blade.php deleted file mode 100644 index a0a5322..0000000 --- a/resources/views/admin/type/test-pack-iso-base-status.blade.php +++ /dev/null @@ -1,150 +0,0 @@ -paginate(setting('row_count')); -$tableName = "test_pack_base_statuses"; -/* - - - - - - - - - */ - - $relationDatas = [ - 'test_pack_download' => [ - 'type' => 'link-search', - 'html' => '' - ], - ]; - - - - -$blockGroup = [ - 'General Info' => [ - 'test_pack_download', - 'area', - 'drawing_no', - 'test_package_no', - 'subcontractor', - // 'responsible_person', - ], - 'TP General Status' => [ - 'tp_status' - ], - 'Iso Info' => [ - 'iso_qty', - 'priority', - 'priority_info', - ], - - 'Test Packets' => [ - 'target_test_date', - 'test_type', - 'test_medium', - 'test_pressure_mpa', - ], - 'Welding Process'=> [ - 'total_iso_quantity', - 'welding_status', - 'remaining_wdi', - 'total_wdi', - 'total_complated_wdi', - 'pipe_progress', - 'total_joint_qty', - 'total_welded_joint_qty', - - ], - 'Support Process' => [ - 'support_progress', - 'support_remaining', - 'welded_support_quantity', - - ], - 'Repair' => [ - 'repair_qty', - 'repair_completed', - 'repair_remaining', - ], - 'Punch Lists' => [ - 'punch_status', - 'punch_a_quantity', - 'punch_b_quantity', - 'punch_c_quantity', - ], - 'NDT Logs' => [ - 'vt_backlog', - 'rt_backlog', - 'ut_backlog', - 'mt_backlog', - 'pmi_backlog', - 'pt_backlog', - 'ferrit_backlog', - 'pwht_backlog', - ], - 'Remarks' => [ - 'remarks', - 'discipline', - ], - -]; -?> - - -
-
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/test-pack-summary.blade.php b/resources/views/admin/type/test-pack-summary.blade.php deleted file mode 100644 index b7420fe..0000000 --- a/resources/views/admin/type/test-pack-summary.blade.php +++ /dev/null @@ -1,3431 +0,0 @@ - - - - -
- -
-
-

Test Package Status Summary by Test Type

-
-
-
- - -
-
-
-
-
-

- {{ e2("Drag & drop the fields just like the Welder Performance > Crew Pivot. All totals update instantly and Excel export is ready in the toolbar.") }} -

-
- {{ e2("Filtered by:") }} {{ e2("Test Type, Area, Subcontractor") }} -
- -
-
-
- -
-
-

Test Package Status Summary by Area

-
-
-
- - -
-
-
-
-
-

- {{ e2("Area focused pivot view. Use the field chooser to pin Area, Responsible or Test Type fields the way you prefer.") }} -

- -
-
-
- -
-
-

ISO & Test Pack Base - Interactive Detail Analysis

-
- - -
-
-
- -
- -
-
-
{{e2("Total TP")}}
-
-
-
-
-
{{e2("Total ISO")}}
-
-
-
-
- - -
-
-
{{e2("Approved")}}
-
-
-
-
-
{{e2("Rejected")}}
-
-
-
-
-
{{e2("Canceled")}}
-
-
-
-
- - -
-
-
{{e2("Total WDI")}}
-
-
-
-
-
{{e2("Completed")}}
-
-
-
-
- - -
-
-
{{e2("NDT Backlog")}}
-
-
-
-
-
{{e2("Punch Items")}}
-
-
-
-
- - -
-
-
{{e2("Reinstatement")}}
-
-
-
-
-
{{e2("Cleaning")}}
-
-
-
-
- - -
-
-
- {{e2("Welding Progress")}} % - - - -
-
-
-
-
-
- {{e2("TP Progress")}} % - - - -
-
-
-
-
-
- -
-
-
- -
-
-

{{e2($c->title)}}

-
-
- -
-
-
-
-
-
-
{{e2("Total Packages")}}
-
{{e2("Across all projects")}}
-
-
-
-
-
-
-
-
-
{{e2("Ready For Test")}}
-
{{e2("Queued for execution")}}
-
-
-
-
-
-
-
-
-
{{e2("Accepted Packages")}}
-
-
-
-
-
-
- - - - -
- - - -
-

{{e2("Pivot Analysis")}}

-
-
-
-
-
- -
-
-
-
-
- - - -
-
-
- - @php - $currentTrendYear = (int) date('Y'); - @endphp -
-
-
-
-
- - -
-
-

{{e2("Monthly Test Trends")}}

-
- - -
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-

{{e2("Monthly Tested Packages by Project and Subcontractor")}}

-
-
-
-
-
-
-
-
-
-
-
-

{{e2("Test Packages by Area and Subcontractor")}}

-
-
-
-
-
-
-
-
-
- -
- - -
- - - -
- -
- - - - \ No newline at end of file diff --git a/resources/views/admin/type/tp-creator-2.blade.php b/resources/views/admin/type/tp-creator-2.blade.php deleted file mode 100644 index 2298fcf..0000000 --- a/resources/views/admin/type/tp-creator-2.blade.php +++ /dev/null @@ -1,972 +0,0 @@ - 'file-text', 'title' => 'Test Package Creator 2']; -?> -
- -
-
-

{{e2($c->title)}}

-
-
-
- -
- -
- - - -
-
-
- @csrf -
- - - @if(getisset("load")) - - @endif - -
-
-
-
- - -
- -
- - {{e2("Documents Panel")}} - - - @if(isAuth($id, "write")) - - {{e2("Create Dynamic Item")}} - - @endif -
- -
-
- -
-
-
-
{{e2("Selected Documents")}}
-
-
-
- -
-
- -
    - -
-
-
-
- - -
-
-
-
{{e2("All Documents")}}
-
- - - -
-
-
- -
    - isDir()) { - $qaFolders[] = $file->getPathname(); - } - } - } - - $weldingDBFolders = glob("$mainPath/003_Welding_Database/*", GLOB_NOSORT) ?: []; - $drawingsFolders = glob("$mainPath/001_Drawings/*", GLOB_NOSORT) ?: []; - ?> - - -
  • 👷 {{e2($title . '_register_title')}} -
    -
    Drawings
    - {{$drawings}} -
  • - - @if(strpos($qa, "Welding Experts") !== false) -
  • 👷 {{e2("Test Package Creator / " . $title)}} -
    - -
    Welding Database
    - {{$qa}} -
  • - @else -
  • 👷 {{e2("Test Package Creator / " . $title)}} -
    -
    Welding Database
    - {{$qa}} -
  • - @endif - - - -
  • 📂 {{e2("Test Package Creator / " . $qa)}} -
    -
    QA
    - {{$qa}} -
  • - - - where("type", "<>", "register")->get(); - $registers = db("document_templates")->where("type", "register")->get(); - foreach($templates AS $template) { - ?> -
  • ✍️ {{e2("Test Package Creator / " . $template->title)}}
    - {{$template->type}} - {{$template->kid}} -
  • - - -
-
-
-
-
-
- -
-
- {{e2("Select Path")}} - -
-
- -
-
-
-
- -
-
-
-

{{e2("Package Details")}}

-
-
-
-
-
-
- -
-
-
-
- - - - - - - - - - - - - diff --git a/resources/views/admin/type/tp-creator.blade.php b/resources/views/admin/type/tp-creator.blade.php deleted file mode 100644 index 22af99f..0000000 --- a/resources/views/admin/type/tp-creator.blade.php +++ /dev/null @@ -1,996 +0,0 @@ -
- -
-
-

{{e2($c->title)}}

-
-
-
-
- - @if(!is_null($progress)) - @foreach($progress AS $queueId => $data) -
-

Job Id: {{$queueId}} (by {{$data['user']->name}})

-
{{e2("Waiting...")}}
-
- -
-
- - @endforeach - @endif -
-
- - - -
-
-
- @csrf -
- - - @if(getisset("load")) - - @endif - -
-
-
-
-
- -
- -
-
- -
-
- -
-

-
- -
- -
-
    - -
-
- -
- -
    - isDir()) { - $qaFolders[] = $file->getPathname(); - } - } - } - - $weldingDBFolders = glob("$mainPath/003_Welding_Database/*", GLOB_NOSORT) ?: []; - $drawingsFolders = glob("$mainPath/001_Drawings/*", GLOB_NOSORT) ?: []; - ?> - - -
  • 👷 {{e2($title . '_register_title')}} -
    - -
    Drawings
    - {{$drawings}} -
  • - - @if(strpos($qa, "Welding Experts") !== false) -
  • 👷 {{e2("Test Package Creator / " . $title)}} -
    - -
    Welding Database
    - {{$qa}} -
  • - @else -
  • 👷 {{e2("Test Package Creator / " . $title)}} -
    - -
    Welding Database
    - {{$qa}} -
  • - @endif - - - -
  • 📂 {{e2("Test Package Creator / " . $qa)}} -
    -
    QA
    - {{$qa}} -
  • - - - where("type", "<>", "register")->get(); - $registers = db("document_templates")->where("type", "register")->get(); - foreach($templates AS $template) { - - ?> -
  • ✍️ {{e2("Test Package Creator / " . $template->title)}}
    - {{$template->type}} - {{$template->kid}} - -
  • - - -
- -
-
-
- -
- -
-
- -
{{e2("Generate Document All")}}
-
-
- {{e2("Select Path")}} - -
-
- - -
-
-
-
-
- - -
- -
-
- - - -
- -
- - - - - - - - - - diff --git a/resources/views/admin/type/tp-documentation.blade.php b/resources/views/admin/type/tp-documentation.blade.php deleted file mode 100644 index 9210034..0000000 --- a/resources/views/admin/type/tp-documentation.blade.php +++ /dev/null @@ -1,166 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
-
-
-
-
-
-
- - -
- - - -
- -
- - - \ No newline at end of file diff --git a/resources/views/admin/type/ut-log.blade.php b/resources/views/admin/type/ut-log.blade.php deleted file mode 100644 index a4082a2..0000000 --- a/resources/views/admin/type/ut-log.blade.php +++ /dev/null @@ -1,166 +0,0 @@ -paginate(setting('row_count')); -$tableName = "ultrasonic_tests"; - -$relationDatas = [ - 'report_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'ut_result' => [ - 'datas' => db("results")->get(), - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ], -]; -$blockGroup = [ - 'Info' => [ - 'report_file', - 'contractor', - ], - 'Invoice' => [ - 'invoice_number', - 'invoice_date', - ], - 'Laboratory' => [ - 'test_laboratory_ut', - 'ut_type', - - ], - 'Project' => [ - 'project', - - ], - 'Design' => [ - 'design_area', - 'line_specification', - 'line_number', - 'fluid_code', - 'service_category', - 'fluid_group', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - - ], - 'ISO Info' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_welds', - ], - 'Welding Info' => [ - 'welding_date', - 'wps_no', - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welder_1', - 'welder_2', - ], - 'Element Info' => [ - 'certificate_no_1', - 'wpq_report_1', - 'certificate_no_2', - 'wpq_report_2', - 'member_no_1', - 'material_no_1', - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'element_code_1', - 'member_no_2', - 'material_no_2', - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'element_code_2', - ], - 'UT Info' => [ - 'ut_scope', - 'ut_request_no', - 'ut_request_date', - 'ut_report', - 'ut_test_date', - 'ut_result', - 'control_standart', - 'tester_name', - 'real_welder_1', - 'real_welder_2', - ], - 'Other' => [ - 'aa', - 'ab', - 'ac', - 'ba', - 'bb', - 'bc', - 'ca', - 'cb', - 'cc', - 'da', - 'db', - 'dc', - 'ea', - 'eb', - 'ec', - 'fa', - 'fb', - 'other', - ], - - - -]; - -//$tableType = "datagrid"; -/* -$prependColumns = [ - 'Report File' => [ - 'type' => 'link-search', - 'path' => '004_QA/0002_UT/', - 'pattern' => "*{ut_report}*.pdf", - 'html' => '' - ], - -]; -*/ -$firstUploadFolder = '004_QA/0002_UT/'; -$firstUploadTitle = 'Upload PDF'; -$uploadPermissionKey = 'ut_log_upload_permission'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/vt-log.blade.php b/resources/views/admin/type/vt-log.blade.php deleted file mode 100644 index 03ec40c..0000000 --- a/resources/views/admin/type/vt-log.blade.php +++ /dev/null @@ -1,158 +0,0 @@ -paginate(setting('row_count')); -$tableName = "v_t_logs"; -/* -$prependColumns = [ - 'Report File' => [ - 'type' => 'link-search', - 'path' => '004_QA/0000_VT/', - 'pattern' => "*{vt_report}*.pdf", - 'html' => '' - ], - -]; -*/ -$relationDatas = [ - 'report_file' => [ - 'type' => 'link-search', - 'html' => '' - ], - 'vt_result' => [ - 'datas' => db("results")->get(), - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ], -]; -$blockGroup = [ - 'General Information' => [ - 'report_file', - 'contractor', - - 'test_laboratory_vt', - 'project', - 'design_area', - 'line_specification', - 'line_number', - 'fluid_code', - 'service_category', - 'fluid_group', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'external_finish_type', - - ], - 'vt a' => [ - 'invoice_no', - 'invoice_date', - ], - 'vt b' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_welds', - ], - 'Welding Info' => [ - - 'welding_date', - 'wps_no', - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welder_1', - 'welder_2', - 'certificate_no', - 'wpq_report', - - - ], - 'Element 1' => [ - 'member_no_1', - 'material_no_1', - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'element_code_1', - - - ], - 'Element 2' => [ - 'member_no_2', - 'material_no_2', - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'element_code_2', - ], - 'VT Info' => [ - 'vt_scope', - 'vt_request_no', - 'vt_request_date', - 'vt_report', - 'vt_test_date', - 'vt_result', - 'control_standart', - - ], - 'Other' => [ - 'tester_name', - 'real_welder_1', - 'real_welder_2', - - 'aa', - 'ab', - 'ac', - 'ba', - 'bb', - 'bc', - 'ca', - 'cb', - 'cc', - 'da', - 'db', - 'dc', - 'ea', - 'eb', - 'ec', - 'fa', - 'fb', - 'other', - ] -]; -$firstUploadFolder = '004_QA/0000_VT/'; -$firstUploadTitle = 'Upload PDF'; -$uploadPermissionKey = 'vt_log_upload_permission'; -?> - - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/washing-blowing.blade.php b/resources/views/admin/type/washing-blowing.blade.php deleted file mode 100644 index d403c51..0000000 --- a/resources/views/admin/type/washing-blowing.blade.php +++ /dev/null @@ -1,50 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
- groupBy("iso_number")->select("iso_number")->groupBy("iso_number")->get()->pluck("iso_number")->toArray(); - $path = "storage/documents/005_PTO/10_промывки и продувки"; - $lineLists = glob("$path/*.*"); - ?> -
-
-
- - -
-
-
-
{{e2("Generate All")}}
-
- -
- -
-
- -
- - - -
- -
- - - \ No newline at end of file diff --git a/resources/views/admin/type/weld-line-comparator.blade.php b/resources/views/admin/type/weld-line-comparator.blade.php deleted file mode 100644 index 79d3fbb..0000000 --- a/resources/views/admin/type/weld-line-comparator.blade.php +++ /dev/null @@ -1,137 +0,0 @@ -

Information

-

This module compares records between Weld Logs and Line Lists tables. It shows records that exist in the Weld Logs table but are missing from the Line Lists table based on matching line_number and unit fields.

-

Records displayed here need to be reviewed as they represent inconsistencies between the two tables.

-
- Loading record count... -
- - -
- diff --git a/resources/views/admin/type/welder-assignment.blade.php b/resources/views/admin/type/welder-assignment.blade.php deleted file mode 100644 index 998c33e..0000000 --- a/resources/views/admin/type/welder-assignment.blade.php +++ /dev/null @@ -1,14 +0,0 @@ - -
-
- @include("$path.weldmap") - @include("$path.qc-weldlog") - @include("$path.wqt") - @include("$path.welder-wdi") -
- -
\ No newline at end of file diff --git a/resources/views/admin/type/welder-id-cart.blade.php b/resources/views/admin/type/welder-id-cart.blade.php deleted file mode 100644 index 6c1e5ad..0000000 --- a/resources/views/admin/type/welder-id-cart.blade.php +++ /dev/null @@ -1,190 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
- {{e2("Print All Card")}} -
- -
- - - -
- -
- \ No newline at end of file diff --git a/resources/views/admin/type/welder-list.blade.php b/resources/views/admin/type/welder-list.blade.php deleted file mode 100644 index fb47deb..0000000 --- a/resources/views/admin/type/welder-list.blade.php +++ /dev/null @@ -1,20 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
-
{{e2("Generate Welder List")}}
-
-
- - -
- - - -
- -
- - diff --git a/resources/views/admin/type/welder-location.blade.php b/resources/views/admin/type/welder-location.blade.php deleted file mode 100644 index 0c06f18..0000000 --- a/resources/views/admin/type/welder-location.blade.php +++ /dev/null @@ -1,188 +0,0 @@ - -
-
-
-

{{e2($c->title)}}

-
-
-
- -
- - - -
- -
- \ No newline at end of file diff --git a/resources/views/admin/type/welder-performance.blade.php b/resources/views/admin/type/welder-performance.blade.php deleted file mode 100644 index 40c57d1..0000000 --- a/resources/views/admin/type/welder-performance.blade.php +++ /dev/null @@ -1,1853 +0,0 @@ - - - - - - - - - - - - - -
-
- {{col("col-12 position-relative","Welder Performance")}} -
- - -
- - -
-
-
-
- Select sections to export - -
- - -
-
-
-
- {{_col()}} - {{col("col-md-12","Zone Performance")}} -
- {{_col()}} - - {{col("col-md-12 position-relative","Crew Performance")}} -
-
- - -
-
- -
- {{_col()}} - -
-
- - - diff --git a/resources/views/admin/type/welder-qualification-status.blade.php b/resources/views/admin/type/welder-qualification-status.blade.php deleted file mode 100644 index c0ab804..0000000 --- a/resources/views/admin/type/welder-qualification-status.blade.php +++ /dev/null @@ -1,311 +0,0 @@ - -
-
-
-

{{e2($c->title)}}

-
-
-
- -
- - - -
- -
- \ No newline at end of file diff --git a/resources/views/admin/type/welder-qualification-table.blade.php b/resources/views/admin/type/welder-qualification-table.blade.php deleted file mode 100644 index 2650b50..0000000 --- a/resources/views/admin/type/welder-qualification-table.blade.php +++ /dev/null @@ -1,335 +0,0 @@ - - - - - - - [ - 'type' => 'link-search', - 'path' => '003_Welding_Database/0006_WPQ/', - 'pattern' => "{wpq_document_no}*.pdf", - 'html' => '' - ], -]; - - -?> -
- -
- {{col("col-12","")}} -
- {{_col()}} -
-
- - \ No newline at end of file diff --git a/resources/views/admin/type/welder-test-plan.blade.php b/resources/views/admin/type/welder-test-plan.blade.php deleted file mode 100644 index 50a871a..0000000 --- a/resources/views/admin/type/welder-test-plan.blade.php +++ /dev/null @@ -1,563 +0,0 @@ -select( - "welder_name_ru", - "welder_name_en", - "naks_welders.welder_id", - "welder_tests.status", - ) - ->join("naks_welders", "naks_welders.welder_id", "=", "welder_tests.naks_id") - - ->whereNotNull("welder_tests.status") - ->where("welder_tests.status", "!=", "") - ->where("welder_tests.status", "!=", " ") - // ->leftJoin("users", "naks_welders.user_id", "=", "users.id") - ->get(); - -$testPlans = db("welder_test_plans") - ->select("hash", "id", "hash AS parent_hash") - ->selectRaw("(select color from welder_test_plans where hash = parent_hash order by id desc limit 1) color") - ->groupBy("hash") - ->whereNotNull("hash") - ->pluck("color", "hash")->toArray(); - -$welderConfirmChecks = WelderConfirmCheck::get(); -$welderConfirmCheckRefactor = []; - -foreach($welderConfirmChecks AS $welderConfirmCheck) { - $welderConfirmCheckRefactor[$welderConfirmCheck->welder_id] = [ - 'third_party' => $welderConfirmCheck->third_party, - 'emplooyer' => $welderConfirmCheck->emplooyer, - ]; -} - -$welderConfirmChecks = $welderConfirmCheckRefactor; - - -$materialGroups = []; - -if(isset($listDatas[0])) { - $columns = array_keys((Array)$listDatas[0]); - - $allDatas = []; - $acceptedDatas = []; - foreach($listDatas AS $listData) { - $allDatas[$listData->welder_id] = $listData; - $naksMaterials = db("welder_tests") - ->select( - "id", - "kss_number", - "diameter", - "vt_result", - "material_group_1", - "material_group_2", - ) - ->where("naks_id", $listData->welder_id) - ->get(); - - $allDatas[$listData->welder_id]->materials = []; - - - foreach($naksMaterials AS $naksMaterial) { - if($naksMaterial->material_group_1 == $naksMaterial->material_group_2) { - $materialGroup = $naksMaterial->material_group_1; - } else { - $materialGroup = $naksMaterial->material_group_1 . "-" . $naksMaterial->material_group_2; - } - - if(!in_array($materialGroup, $materialGroups)) { - $materialGroups[] = $materialGroup; - } - - $accepted = false; - if($naksMaterial->vt_result == "Accept / Годен") { - $accepted = true; - } - $acceptedDatas[$naksMaterial->id] = $accepted; - - if(!isset($allDatas[$listData->welder_id]->materials[$materialGroup])) { - $allDatas[$listData->welder_id]->materials[$materialGroup] = []; - } - if(!isset($allDatas[$listData->welder_id]->materials[$materialGroup]['group_1'])) { - $allDatas[$listData->welder_id]->materials[$materialGroup]['group_1'] = []; - } - - if(!isset($allDatas[$listData->welder_id]->materials[$materialGroup]['group_2'])) { - $allDatas[$listData->welder_id]->materials[$materialGroup]['group_2'] = []; - } - - if(!isset($allDatas[$listData->welder_id]->materials[$materialGroup]['group_3'])) { - $allDatas[$listData->welder_id]->materials[$materialGroup]['group_3'] = []; - } - - if($naksMaterial->diameter<=25) { - $allDatas[$listData->welder_id]->materials[$materialGroup]['group_1'][$naksMaterial->id] = $naksMaterial->kss_number; - } elseif($naksMaterial->diameter>25 && $naksMaterial->diameter<=150) { - $allDatas[$listData->welder_id]->materials[$materialGroup]['group_2'][$naksMaterial->id] = $naksMaterial->kss_number; - } else { - $allDatas[$listData->welder_id]->materials[$materialGroup]['group_3'][$naksMaterial->id] = $naksMaterial->kss_number; - } - - } - } - - // Veriyi DevExtreme DataGrid için hazırlama - $gridData = []; - $rowSerialNumber = 1; - - foreach($allDatas as $welderId => $data) { - $rowData = [ - 'id' => $rowSerialNumber, - 'welder_id' => $welderId, - 'welder_name_ru' => $data->welder_name_ru, - 'welder_name_en' => $data->welder_name_en, - 'status' => $data->status - ]; - - // Material bilgilerini ekleme - $materialCount = 1; - foreach($data->materials as $materialKey => $values) { - $rowData['material_' . $materialCount . '_name'] = $materialKey; - - // Çap gruplarına göre malzeme verilerini ekleme - for($groupKey = 1; $groupKey <= 3; $groupKey++) { - $cellValues = []; - $cellDetails = []; - - foreach($values['group_'.$groupKey] as $uniqueId => $value) { - $hash = md5($welderId.$groupKey.$value); - $cellInfo = [ - 'value' => $value, - 'hash' => $hash, - 'accepted' => isset($acceptedDatas[$uniqueId]) ? $acceptedDatas[$uniqueId] : false, - 'color' => isset($testPlans[$hash]) ? $testPlans[$hash] : null - ]; - $cellValues[] = $value; - $cellDetails[] = $cellInfo; - } - - $rowData['material_' . $materialCount . '_group_' . $groupKey . '_values'] = implode(', ', $cellValues); - $rowData['material_' . $materialCount . '_group_' . $groupKey . '_details'] = json_encode($cellDetails); - } - - $materialCount++; - } - - // Boş malzeme hücreleri için değerler ekleme - if($materialCount <= 3) { - for($remainingMaterial = $materialCount; $remainingMaterial <= 3; $remainingMaterial++) { - $rowData['material_' . $remainingMaterial . '_name'] = '-'; - for($groupKey = 1; $groupKey <= 3; $groupKey++) { - $rowData['material_' . $remainingMaterial . '_group_' . $groupKey . '_values'] = ''; - $rowData['material_' . $remainingMaterial . '_group_' . $groupKey . '_details'] = json_encode([]); - } - } - } - - // Onay bilgilerini ekleme - $rowData['third_party'] = isset($welderConfirmChecks[$welderId]) ? $welderConfirmChecks[$welderId]['third_party'] : ''; - $rowData['emplooyer'] = isset($welderConfirmChecks[$welderId]) ? $welderConfirmChecks[$welderId]['emplooyer'] : ''; - - $gridData[] = $rowData; - $rowSerialNumber++; - } - - // JSON formatına dönüştürme - $gridDataJson = json_encode($gridData); -} -?> - - - - - - - - -
-
- {{col("col-12","Welder Test Plan Table")}} -
- {{_col()}} -
-
- - diff --git a/resources/views/admin/type/welding-consumables-journal.blade.php b/resources/views/admin/type/welding-consumables-journal.blade.php deleted file mode 100644 index 1bc45a4..0000000 --- a/resources/views/admin/type/welding-consumables-journal.blade.php +++ /dev/null @@ -1,26 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
-
{{e2("Generate Welding Consumables Journal")}}
-
{{e2("Print")}}
- - - - -
- -
- - -
- - - -
- -
- - diff --git a/resources/views/admin/type/welding-jurnal.blade.php b/resources/views/admin/type/welding-jurnal.blade.php deleted file mode 100644 index 6ecebdd..0000000 --- a/resources/views/admin/type/welding-jurnal.blade.php +++ /dev/null @@ -1,60 +0,0 @@ - -
-
-
-

{{e2($c->title)}}

-
-
- whereNotNull("welding_date")->select("line_number")->groupBy("line_number")->get()->pluck("line_number")->toArray(); - - ?> -
-
-
- -
- - -
{{e2("Print PDF")}}
-
-
-
-
-
{{e2("Generate All Drawings")}}
- -
-
- -
-
- -
- - - -
- -
- - - \ No newline at end of file diff --git a/resources/views/admin/type/weldlog-employer-view.blade.php b/resources/views/admin/type/weldlog-employer-view.blade.php deleted file mode 100644 index 6d232bd..0000000 --- a/resources/views/admin/type/weldlog-employer-view.blade.php +++ /dev/null @@ -1,272 +0,0 @@ -paginate(setting('row_count')); -$tableName = "weld_logs"; -$limitedSummaryColumns = ['nps_1', 'nps_2', 'outside_diameter_1', 'outside_diameter_2']; -$excludeMechanicalFromSummaries = true; -$alwaysSelectColumns = ['type_of_welds']; -$enableMechanicalControls = true; - -$id = "weldlog-employer-view"; -$moduleId = "weldlog-employer-view"; - -$blockGroup = [ - 'Attachment' => [ - 'pdf_engineering', - 'pdf_spool_iso', - 'pdf_as_build', - ], - 'Information About the PIPE' => [ - 'general_contractor', - 'contractor', - 'ste_subcontractor', - 'project', - 'piping_type', - 'design_area', - 'line_specification', - 'line_number', - // 'main_material', // Hidden for employer view - // 'main_nps', // Hidden for employer view - 'fluid_code', - 'service_category', - 'fluid_group', - 'piping_class', - 'design_temperature_s', - 'design_pressure_mpa', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'painting_cycle', - 'external_finish_type' - ], - 'Iso Information' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number' - ], - 'Information about the welding' => [ - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_welds', - 'fit_up_date', - 'welding_date', - 'wps_no', - 'wps_approval_date', - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welding_materials_3', - 'welding_materials_3_lot_no', - 'welding_materials_3_certificate_no', - 'welder_1', - 'welder_2', - 'certificate_no_1', - 'wpq_report_1', - 'certificate_no_2', - 'wpq_report_2', - ], - 'Control Information' => [ - 'mechanic_supervisor', - 'mechanic_supervisor_control_date', - 'welding_supervisor', - 'welding_supervisor_control_date', - 'fit_up_report_no', - 'fit_up_report_date', - 'welding_report_no', - 'welding_report_date', - ], - 'Information about the welding elements 1' => [ - 'element_code_1', - 'pose_no_1', - 'member_no_1', - 'material_no_1', - 'product_standart_1', - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - // 'wall_thickness_1', // Hidden for employer view (SCH1) - ], - 'Information about the welding elements 2' => [ - 'element_code_2', - 'pose_no_2', - 'member_no_2', - 'material_no_2', - 'product_standart_2', - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - // 'wall_thickness_2', // Hidden for employer view (SCH2) - ], - 'VT' => [ - 'ndt_percent', - 'vt_report', - 'vt_test_date', - 'test_laboratory_vt', - 'vt_result', - 'vt_release_rfi_no', - 'vt_release_rfi_date', - ], - 'RT' => [ - 'rt_scope', - 'rt_report', - 'rt_test_date', - 'test_laboratory_rt', - 'rt_result', - 'rt_release_rfi_no', - 'rt_release_rfi_date', - ], - 'UT' => [ - 'ut_scope', - 'ut_type', - 'ut_report', - 'ut_test_date', - 'test_laboratory_ut', - 'ut_result', - 'ut_release_rfi_no', - 'ut_release_rfi_date', - ], - 'PT' => [ - 'pt_scope', - 'pt_report', - 'pt_test_date', - 'test_laboratory_pt', - 'pt_result', - 'pt_release_rfi_no', - 'pt_release_rfi_date', - ], - 'MT' => [ - 'mt_scope', - 'mt_report', - 'mt_test_date', - 'test_laboratory_mt', - 'mt_result', - 'mt_release_rfi_no', - 'mt_release_rfi_date', - ], - 'PMI' => [ - 'pmi_scope', - 'no_of_testing_report', - 'pmi_test_date', - 'test_laboratory_pmi', - 'pmi_result', - 'pmi_release_rfi_no', - 'pmi_release_rfi_date', - ], - 'PWHT' => [ - 'pwht', - 'no_of_pwht_report', - 'pwht_date', - 'diagram_number_pwht', - 'test_laboratory_pwht', - 'pwht_operator_name', - 'pwht_operator_id', - 'pwht_release_rfi_no', - 'pwht_release_rfi_date', - ], - 'HT' => [ - 'ht_scope', - 'no_of_ht_hardnes_test', - 'ht_test_date', - 'test_laboratory_ht', - 'ht_result', - 'ht_release_rfi_no', - 'ht_release_rfi_date', - ], - 'Ferrite Check' => [ - 'ferrite_scope', - 'ferrite_report', - 'ferrite_test_date', - 'test_laboratory_ferrite', - 'ferrite_result', - 'ferrite_release_rfi_no', - 'ferrite_release_rfi_date', - ], - 'PIPE testing' => [ - 'test_package_no', - 'test_pressure', - 'type_of_test', - 'date_test', - 'test_result' - ], - 'Release' => [ - 'ndt_release_no', - 'ndt_release_date', - 'spool_ndt_check', - 'spool_ndt_check_no', - 'register_paint_no', - 'register_date', - 'paint_release_no', - 'paint_release_date', - 'spool_paint_check', - 'clearance_no', - 'clearance_date', - 'spool_zone', - 'spool_status', - 'spool_release_date', - 'joint_release_rfi_no', - 'joint_release_rfi_date', - 'joint_release_document_no', - 'joint_release_document_date', - ], - 'Status' => [ - 'remarks', - 'remarks2' - ] -]; - -$columnRedesign = []; -$columnRedesign['diameter']['class'] = "col-md-6"; -$columnRedesign['thickness']['class'] = "col-md-6"; -$columnRedesign['pwht_operator_name_surname']['class'] = "col-md-6"; -$columnRedesign['pwht_operator_id']['class'] = "col-md-6"; - -$columnsArray = ['vt', 'rt', 'ut', 'mt', 'pt', 'pmi', 'pwht', 'ht', 'ferrite-check', 'pipe-testing']; -foreach($columnsArray AS $columnKey) { - $columnRedesign[$columnKey]['class'] = "col-md-6"; - $columnRedesign[$columnKey]['border'] = true; - $columnRedesign[$columnKey]['color'] = 15; -} - -$columnRedesign['release']['class'] = "col-md-6"; -$columnRedesign['release']['border'] = true; -$columnRedesign['release']['color'] = 16; - -$wpsJointTypeRuMapping = db("w_p_s") - ->select("details", "joint_type_ru") - ->whereNotNull("joint_type_ru") - ->get() - ->pluck("joint_type_ru", "details") - ->toArray(); - -$existingJointTypes = db("weld_logs") - ->join("w_p_s", "weld_logs.wps_no", "=", "w_p_s.details") - ->select("w_p_s.joint_type_ru") - ->whereNotNull("w_p_s.joint_type_ru") - ->distinct() - ->pluck("w_p_s.joint_type_ru") - ->filter() - ->unique() - ->sort() - ->values() - ->toArray(); - -?> -@include("admin.type.weldmap.main") - - diff --git a/resources/views/admin/type/weldlog-old.blade.php b/resources/views/admin/type/weldlog-old.blade.php deleted file mode 100644 index 5dd5130..0000000 --- a/resources/views/admin/type/weldlog-old.blade.php +++ /dev/null @@ -1,253 +0,0 @@ -paginate(setting('row_count')); -$tableName = "weld_logs"; - - -//dd(implode("','", table_columns($tableName))); -/* - id','general_contractor','contractor','design_area','line_specification','line_number','main_material','main_nps','fluid_code','service_category','fluid_group','piping_class','design_temperature_s','design_pressure_mpa','operating_temperature_s','operating_pressure_mpa','external_finish_type','painting_cycle_cikl_pokraski','external_finish_type','iso_number','quantity_of_iso','iso_rev','spool_number','type_of_joint','no_of_the_joint_as_per_as_built_survey','type_of_welds','welding_date','wps','wps_approval_date','welding_method','welding_materials_1','welding_materials_1_lot_no','welding_materials_1_certificate_no','welding_materials_2','welding_materials_2_lot_no','welding_materials_2_certificate_no','welding_materials_3','welding_materials_3_lot_no','welding_materials_3_certificate_no','welders_stamp_root_pass','welders_stamp_filling_and_capping','certificate_no','wpq_report','member_1','material_1','ru_material_group','certificate_number_of_1','heat_number_1','nps','thickness_by_asme_s_20_std','outside_diameter_mm','wall_thickness_1','pose_no_1','1_element_code','member_2','material_2','ru_material_group2','certificate_number_of_2','heat_number_2','nps2','thickness_by_asme_s_20_std2','outsidediametermm','wall_thickness_2_mm','pose_no_2','2_element_code','nde_group_no','vt_request','vt_report','date_of_vt','test_laboratory_vt','vt_result','rt_scope','rt_request','rt_report','rt_test_date','test_laboratory_rt','rt_result','ut_scope','ut_request','ut_report','ut_test_date','test_laboratory_ut','ut_result','pt_scope','pt_request','pt_report','pt_test_date','test_laboratory_pt','pt_result','mt_scope','mt_request','mt_report','mt_test_date','test_laboratory_mt','mt_result','pmi_scope','pmi_request','no_of_testing_report','pmi_test_date','test_laboratory_pmi','pmi_result','pwht','pwht_date','of_pwht_report','diagram_number_pwht','test_laboratory_pwht','nt_scope','ht_request','no_of_ht_hardnes_test','ht_request_date','test_laboratory_ht','ht_result','ferrite_scope','ferrite_check_request','no_of_ferrite_check','date_of_ferrite_check','test_laboratory_ferrite','ferrite_result','test_package','test_pressure','type_of_test','date_test','test_result','real_welder_1','real_welder_2','ste_subcontructer - */ - -$blockGroup = [ - 'Information About the PIPE' => [ - 'general_contractor','contractor', - 'ste_subcontractor', - 'design_area','line_specification','line_number','main_material','main_nps','fluid_code','service_category','fluid_group','piping_class','design_temperature_s','design_pressure_mpa','operating_temperature_s','operating_pressure_mpa','painting_cycle','external_finish_type' - - ], - 'Iso Information' => [ - 'iso_number','quantity_of_iso','iso_rev','spool_number' - ], - 'Information about the welding' => [ - 'type_of_joint','no_of_the_joint_as_per_as_built_survey','type_of_welds','welding_date','wps_no','wps_approval_date','welding_method','welding_materials_1','welding_materials_1_lot_no','welding_materials_1_certificate_no','welding_materials_2','welding_materials_2_lot_no','welding_materials_2_certificate_no','welding_materials_3','welding_materials_3_lot_no','welding_materials_3_certificate_no','welder_1','welder_2', - 'certificate_no_1','wpq_report_1', - 'certificate_no_2','wpq_report_2', - ], - 'Information about the welding elements' => [ - 'element_code_1', 'pose_no_1', 'member_no_1', - 'element_code_2', 'pose_no_2', 'member_no_2', - 'material_no_1','ru_material_group_1','certificate_number_of_1','heat_number_1','nps_1','thickness_by_asme_1','outside_diameter_1','wall_thickness_1','material_no_2','ru_material_group_2','certificate_number_of_2','heat_number_2','nps_2','thickness_by_asme_1','outside_diameter_2','wall_thickness_2', - ], - 'VT' => [ - 'ndt_percent','vt_request_no','vt_report','date_of_vt','test_laboratory_vt','vt_result' - ], - 'RT' => [ - 'rt_scope','rt_request_no','rt_report','rt_test_date','test_laboratory_rt','rt_result' - ], - 'UT' => [ - 'ut_scope','ut_request_no','ut_report','ut_test_date','test_laboratory_ut','ut_result' - ], - 'PT' => [ - 'pt_scope','pt_request_no','pt_report','pt_test_date','test_laboratory_pt','pt_result' - ], - 'MT' => [ - 'mt_scope','mt_request_no','mt_report','mt_test_date','test_laboratory_mt','mt_result' - ], - 'PMI' => [ - 'pmi_scope','pmi_request_no','no_of_testing_report','pmi_test_date','test_laboratory_pmi','pmi_result','pwht','pwht_date' - ], - 'PWHT' => [ - 'pwht','pwht_date','no_of_pwht_report','diagram_number_pwht','test_laboratory_pwht' - ], - 'HT' => [ - 'nt_scope','ht_request_no','no_of_ht_hardnes_test','ht_request_date','test_laboratory_ht','ht_result' - ], - 'Ferrite Check' => [ - 'ferrite_scope','ferrite_request_no','no_of_ferrite_check','date_of_ferrite_check','test_laboratory_ferrite','ferrite_result' - ], - 'PIPE testing' => [ - 'test_package_no','test_pressure','type_of_test','date_test','test_result' - ], - 'Status' => [ - 'real_welder_1','real_welder_2','ste_subcontructer','remarks' - ] - -]; -$columnRedesign = []; -$columnRedesign['diameter']['class'] = "col-md-6"; -$columnRedesign['thickness']['class'] = "col-md-6"; -$columnRedesign['pwht_operator_name_surname']['class'] = "col-md-6"; -$columnRedesign['pwht_operator_id']['class'] = "col-md-6"; - -$columnsArray = ['vt', 'rt', 'ut', 'mt', 'pt', 'pmi', 'pwht', 'ht', 'ferrite-check', 'pipe-testing']; -foreach($columnsArray AS $columnKey) { - $columnRedesign[$columnKey]['class'] = "col-md-6"; - $columnRedesign[$columnKey]['border'] = true; - $columnRedesign[$columnKey]['color'] = 15; -} - -$materials = db("materials")->get(); -$lineLists = db("line_lists")->get(); -$wps = db("w_p_s")->get(); -$weldingConsumables = db("welding_consumables")->get(); -$naksConsumables = db("naks_consumables")->get(); -$naksConsumables2 = db("naks_consumables")->whereIn("type_of_consumable", ['Gas / Газ', 'Flux /'])->get(); -$naksWelders = db("naks_welders")->get(); -$welderTests = db("welder_tests")->groupBy("naks_no")->get(); -$mto = db("m_t_o_s")->get(); -$materials = db("materials")->groupBy("ru_group")->whereNotIn("ru_group",['*'])->get(); - -$jointTypes = db("joint_types")->get(); - -$relationDatas = [ - 'type_of_welds' => [ - 'datas' => $jointTypes, - 'pattern' => '{short_name_en}', - 'type' => 'select-dropdown' - ], - 'main_material' => [ - 'datas' => $materials, - 'pattern' => '{steel_grade}', - 'type' => 'select-dropdown' - ], - 'welding_materials_1_certificate_no' => [ - 'datas' => $naksConsumables, - 'pattern' => '{inspection_test_report}', - 'type' => 'select-dropdown' - ], - 'welding_materials_2_certificate_no' => [ - 'datas' => $naksConsumables, - 'pattern' => '{inspection_test_report}', - 'type' => 'select-dropdown' - ], - 'welding_materials_3_certificate_no' => [ - 'datas' => $naksConsumables2, - 'pattern' => '{inspection_test_report}', - 'type' => 'select-dropdown' - ], - - 'welder_1' => [ - 'datas' => $naksWelders, - 'pattern' => '{welder_id} / {welder_name_en}', - 'type' => 'select-dropdown' - ], - - - 'welder_2' => [ - 'datas' => $naksWelders, - 'pattern' => '{welder_id} / {welder_name_en}', - 'type' => 'select-dropdown' - ], - 'certificate_no_1' => [ - 'datas' => $welderTests, - 'pattern' => '{naks_no}', - 'type' => 'select-dropdown' - ], - - 'certificate_no_2' => [ - 'datas' => $welderTests, - 'pattern' => '{naks_no}', - 'type' => 'select-dropdown' - ], - - 'wpq_report_1' => [ - 'datas' => $welderTests, - 'pattern' => '{wpq_document_no}', - 'type' => 'select-dropdown' - ], - 'wpq_report_2' => [ - 'datas' => $welderTests, - 'pattern' => '{wpq_document_no}', - 'type' => 'select-dropdown' - ], - - 'type_of_joint' => [ - 'datas' => $jointTypes, - 'pattern' => '{short_name_en}', - 'type' => 'select-dropdown' - ], - 'material_1' => [ - 'datas' => $mto, - 'pattern' => '{material}', - 'type' => 'select-dropdown' - ], - 'ru_material_group' => [ - 'datas' => $materials, - 'pattern' => '{ru_group}', - 'type' => 'select-dropdown' - ], - /* - 'welding_materials_1' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{brend}', - 'type' => 'select-dropdown' - ], - 'welding_materials_2' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{brend}', - 'type' => 'select-dropdown' - ], - */ - 'welding_materials_3' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{brend}', - 'type' => 'select-dropdown' - ], - 'wps_no' => [ - 'datas' => $wps, - 'pattern' => '{details}', - 'type' => 'select-dropdown', - 'affected' => [ - 'all', - 'wps_approval_date' => '{approved_date}', - 'welding_method' => '{welding_process}', - 'wps_approval_date' => '{approved_date}' - - ] - ], - 'line_number' => [ - 'type' => 'auto-complete2', - 'table' => 'line_lists', - 'column' => 'line_no', - 'pattern' => '{line_no}', - 'affected' => [ - 'design_temperature_s' => '{design_temperature}', - 'service_category' => '{category}', - 'piping_class' => '{category} + {fluid_group}', - 'main_nps' => '{design_temperature}', - 'design_pressure_mpa' => '{design_pressure_mpa}', - 'operating_pressure_mpa' => '{working_pressure_mpa}', - 'painting_cycle' => '{painting_cycle}', - 'external_finish_type' => '{external_finish_type}', - 'operating_temperature_s' => '{working_temperature}', - ], - ], - 'is_number' => [''] - - -]; - -//$onlyShowColumn = true; -?> - - -
-
- @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/weldlog.blade.php b/resources/views/admin/type/weldlog.blade.php deleted file mode 100644 index 60d3164..0000000 --- a/resources/views/admin/type/weldlog.blade.php +++ /dev/null @@ -1,345 +0,0 @@ - $lineList->line_specification, - 'main_material' => $lineList->pipe_material_class, - 'main_nps' => $lineList->dn, - 'fluid_code' => $lineList->fluid_code, - 'service_category' => $lineList->category, - 'fluid_group' => $lineList->fluid_group, - 'piping_class' => $lineList->pipe_material_class, - 'design_temperature_s' => $lineList->design_temperature, - 'design_pressure_mpa' => $lineList->design_pressure_mpa, - 'operating_temperature_s' => $lineList->working_temperature, - 'painting_cycle' => $lineList->painting_cycle, - 'external_finish_type' => $lineList->external_finish_type, - ]; - - WeldLog::where("line_number", $lineList->line_no) - ->update($updateData); - - $k++; - - } - // }); - bilgi(":count row sync from Line List", "success", ['count'=>$k]); - */ -} - -if(getisset("sync")) { -/* - $ndes = NdeMatrix::get(); - $data = []; - foreach($ndes AS $nde) { - $data[$nde->line][$nde->type_of_joint] = $nde; - } - $count = 0; - foreach($data AS $line => $item) { - foreach($item AS $typeOfJoint => $subData) { - $updateData = [ - "ut_scope" => $subData->ut, - "rt_scope" => $subData->rt, - "pt_scope" => $subData->pt, - "mt_scope" => $subData->mt, - "ht_scope" => $subData->ht, - "pmi_scope" => $subData->pmi, - "pwht" => $subData->pwht, - ]; - WeldLog::where("line_number", $line)->where("type_of_welds", $typeOfJoint) - ->update($updateData); - $count++; - - } - - } - - bilgi(":count Data has been sync from Nde Matrix", - "success", - ['count' => $count] - ); - -*/ -} - -$title = "Weldlog"; -$tableWidth="2000%"; -$listDatas = WeldLog::orderBy("id","DESC")->paginate(setting('row_count')); -$tableName = "weld_logs"; -$limitedSummaryColumns = ['nps_1', 'nps_2', 'outside_diameter_1', 'outside_diameter_2']; // Limited columns for SUM/AVG (plus id for count) -$excludeMechanicalFromSummaries = true; -$alwaysSelectColumns = ['type_of_welds']; -$enableMechanicalControls = true; - -$requiredFields = [ - 'general_contractor', - 'contractor', - 'ste_subcontractor', - 'project', - 'design_area', - 'fluid_code', - 'line_number', - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_joint', - 'type_of_welds', - 'fit_up_date', - 'welding_date', - // 'element_code_1', - 'pose_no_1', - 'member_no_1', - 'material_no_1', - 'product_standart_1', - 'ru_material_group_1', - 'nps_1', - // 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - // 'element_code_2', - 'pose_no_2', - 'member_no_2', - 'material_no_2', - 'product_standart_2', - 'ru_material_group_2', - 'nps_2', - // 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - // 'nde', - // 'pwht', -]; - - - -$blockGroup = [ - 'Attachment' => [ - 'pdf_engineering', - 'pdf_spool_iso', - 'pdf_as_build', - ], - 'Information About the PIPE' => [ - 'general_contractor', - 'contractor', - 'project', - 'piping_type', - 'design_area', - 'line_specification', - 'line_number', - 'main_material', - 'main_nps', - 'fluid_code', - 'service_category', - 'fluid_group', - 'piping_class', - 'design_temperature_s', - 'design_pressure_mpa', - 'operating_temperature_s', - 'operating_pressure_mpa', - 'painting_cycle', - 'external_finish_type' - - ], - 'Iso Information' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number' - ], - 'Information about the welding' => [ - 'type_of_joint', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_welds', - 'fit_up_date', - 'welding_date', - 'wps_no', - 'wps_approval_date', - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welding_materials_3', - 'welding_materials_3_lot_no', - 'welding_materials_3_certificate_no', - 'fitter_name', - 'welder_1', - 'welder_2', - 'certificate_no_1', - 'wpq_report_1', - 'certificate_no_2', - 'wpq_report_2', - ], - 'Information about the welding elements 1' => [ - 'element_code_1', - 'pose_no_1', - 'member_no_1', - 'material_no_1', - 'product_standart_1', - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - - ], - 'Information about the welding elements 2' => [ - - - 'element_code_2', - 'pose_no_2', - 'member_no_2', - 'material_no_2', - 'product_standart_2', - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - ], - 'VT' => [ - 'ndt_percent', - 'vt_request_no', - 'vt_request_date', - 'vt_report', - 'vt_test_date', - 'test_laboratory_vt', - 'vt_result' - ], - 'RT' => [ - 'rt_scope', - 'rt_request_no', - 'rt_request_date', - 'rt_report', - 'rt_test_date', - 'test_laboratory_rt', - 'rt_result' - ], - 'UT' => [ - 'ut_scope', - 'ut_request_no', - 'ut_type', - 'ut_request_date', - 'ut_report', - 'ut_test_date', - 'test_laboratory_ut', - 'ut_result' - ], - 'PT' => [ - 'pt_scope', - 'pt_request_no', - 'pt_request_date', - 'pt_report', - 'pt_test_date', - 'test_laboratory_pt', - 'pt_result' - ], - 'MT' => [ - 'mt_scope', - 'mt_request_no', - 'mt_request_date', - 'mt_report', - 'mt_test_date', - 'test_laboratory_mt', - 'mt_result' - ], - 'PMI' => [ - 'pmi_scope', - 'pmi_request_no', - 'pmi_request_date', - 'no_of_testing_report', - 'pmi_test_date', - 'test_laboratory_pmi', - 'pmi_result', - ], - 'PWHT' => [ - 'pwht', - 'pwht_request_no', - 'pwht_request_date', - 'no_of_pwht_report', - 'pwht_date', - 'diagram_number_pwht', - 'test_laboratory_pwht', - 'test_laboratory_pwht', - 'pwht_operator_name', - 'pwht_operator_id', - ], - 'HT' => [ - 'ht_scope', - 'ht_request_no', - 'ht_request_date', - 'no_of_ht_hardnes_test', - 'ht_test_date', - 'test_laboratory_ht', - 'ht_result' - ], - 'Ferrite Check' => [ - 'ferrite_scope', - 'ferrite_request_no', - 'ferrite_request_date', - 'ferrite_report', - 'ferrite_test_date', - 'test_laboratory_ferrite', - 'ferrite_result' - ], - 'PIPE testing' => [ - 'test_package_no', - 'test_pressure', - 'type_of_test', - 'date_test', - 'test_result' - ], - 'Status' => [ - 'real_welder_1', - 'real_welder_2', - 'ste_subcontractor', - 'remarks', - 'remarks2' - ] - -]; -$columnRedesign = []; -$columnRedesign['diameter']['class'] = "col-md-6"; -$columnRedesign['thickness']['class'] = "col-md-6"; -$columnRedesign['pwht_operator_name_surname']['class'] = "col-md-6"; -$columnRedesign['pwht_operator_id']['class'] = "col-md-6"; - -$columnsArray = ['vt', 'rt', 'ut', 'mt', 'pt', 'pmi', 'pwht', 'ht', 'ferrite-check', 'pipe-testing']; -foreach($columnsArray AS $columnKey) { - $columnRedesign[$columnKey]['class'] = "col-md-6"; - $columnRedesign[$columnKey]['border'] = true; - $columnRedesign[$columnKey]['color'] = 15; -} - -$topButtons = []; -/* -$topButtons[] = [ - 'href' => '?sync', - 'html' => ' ' . __("Sync From NDE") -]; -$topButtons[] = [ - 'href' => '?sync-line-lists', - 'html' => ' ' . __("Sync From Line List") -]; -*/ - - -?> -@include("admin.type.weldmap.main") \ No newline at end of file diff --git a/resources/views/admin/type/weldmap-fast.blade.php b/resources/views/admin/type/weldmap-fast.blade.php deleted file mode 100644 index 2845126..0000000 --- a/resources/views/admin/type/weldmap-fast.blade.php +++ /dev/null @@ -1,100 +0,0 @@ - [ - 'pdf_engineering', - 'pdf_spool_iso', - 'pdf_as_build', - ], - 'Information About the PIPE' => [ - 'general_contractor', - 'contractor', - 'ste_subcontractor', - 'project', - 'piping_type', - 'design_area', - 'line_number', - ], - 'Iso Information' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'spool_number2', - 'no_of_the_joint_as_per_as_built_survey', - ], - 'Information about the welding' => [ - 'type_of_joint', - 'type_of_welds', - ], - 'Element 1' => [ - 'element_code_1', - 'pose_no_1', - 'member_no_1', - 'material_no_1', - 'product_standart_1', - 'nps_1', - 'outside_diameter_1', - 'wall_thickness_1', - - ], - 'Element 2' => [ - 'element_code_2', - 'pose_no_2', - 'member_no_2', - 'material_no_2', - 'product_standart_2', - 'nps_2', - 'outside_diameter_2', - 'wall_thickness_2', - - ], - - 'NDT' => [ - 'nde', - 'pwht', - ], - -]; -?> -@include("admin.type.weldmap") \ No newline at end of file diff --git a/resources/views/admin/type/weldmap-fast2.blade.php b/resources/views/admin/type/weldmap-fast2.blade.php deleted file mode 100644 index 4635caf..0000000 --- a/resources/views/admin/type/weldmap-fast2.blade.php +++ /dev/null @@ -1,630 +0,0 @@ -paginate(setting('row_count')); -$tableName = "weld_logs"; -$excludeMechanicalFromSummaries = true; -$alwaysSelectColumns = ['type_of_welds']; -$enableMechanicalControls = true; -//dd(implode("', \n '",table_columns($tableName))); -if(getisset("only-show-column")) { - $onlyShowColumn = true; -} -$tableType = "datagrid"; - -$newTitle = "New Joint"; -$topButtons = [ - 0 => [ - 'href' => '#', - 'html' => 'Upload PDF', - 'class' => 'upload-pdf' - ] -]; -$requiredFields = [ - 'general_contractor', - 'contractor', - 'ste_subcontractor', - 'project', - 'design_area', - 'fluid_code', - 'line_number', - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_joint', - 'type_of_welds', - 'fit_up_date', - 'welding_date', - 'element_code_1', - 'pose_no_1', - 'member_no_1', - 'material_no_1', - 'ru_material_group_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - 'element_code_2', - 'pose_no_2', - 'member_no_2', - 'material_no_2', - 'ru_material_group_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - 'nde', - 'pwht', -]; - -$blockGroup = [ - 'Information About the PIPE' => [ - 'general_contractor', - 'contractor', - 'ste_subcontractor', - 'project', - 'design_area', - 'fluid_code', - 'line_number', - ], - /* - 'Information About the PIPE' => [ - 'general_contractor', -'contractor', -'design_area', -'line_number', -'fluid_code', - ], - */ - 'Iso Information' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'no_of_the_joint_as_per_as_built_survey', - ], - 'Information about the welding' => [ - 'type_of_joint', - 'type_of_welds', - 'fit_up_date', - 'welding_date', - 'wps_no', - 'fitter_name', - ], - /* - 'Welding Process' => [ - 'welding_method', - 'welding_materials_1', - 'welder_1', - 'welder_2', - - ], - */ - 'Element 1' => [ - 'element_code_1', - 'pose_no_1', - 'member_no_1', - 'material_no_1', - 'nps_1', - 'outside_diameter_1', - 'wall_thickness_1', - - ], - 'Element 2' => [ - 'element_code_2', - 'pose_no_2', - 'member_no_2', - 'material_no_2', - 'nps_2', - 'outside_diameter_2', - 'wall_thickness_2', - - ], - - 'Thickness Range' => [ - 'nde', - 'pwht', - ], - -]; - -$columns = ['id']; - -foreach($blockGroup AS $group => $cols) { - foreach($cols AS $col) { - $columns[] = $col; - } - -} - -// Ensure alwaysSelectColumns are included -if(isset($alwaysSelectColumns) && is_array($alwaysSelectColumns)) { - foreach($alwaysSelectColumns as $forcedColumn) { - if(!in_array($forcedColumn, $columns)) { - $columns[] = $forcedColumn; - } - } -} - -//dd($columns); - -$listDatas = WeldLog::select($columns)->orderBy("id","DESC")->paginate(setting('row_count')); - - -$u = u(); -$steSubcontractor = db("subcontractors")->get(); -$steSubcontractor2 = db("subcontractors"); -if($u->subcontructer != "Stellar") { - $steSubcontractor2 = $steSubcontractor2->where("company_name_en", $u->subcontructer); -} -$steSubcontractor = db("subcontractors")->get(); -$mainContractor = db("subcontractors")->where("operation_type","Main Contractor")->get(); -$wps = db("w_p_s")->get(); -$weldingMethods = db("welding_methods")->get(); -$naksConsumables = db("naks_consumables")->get(); -$naksConsumablesProduct = db("naks_consumables")->select("product_name")->groupBy("product_name")->get(); -$naksConsumablesFluxGas = db("naks_consumables") - ->select('product_name') - ->whereIn('type_of_consumable', ['Electrode / Электрод', 'Gas / Газ']) - ->groupBy('product_name') - ->get(); -$mtos = db("m_t_o_s")->groupBy("component_code_id")->get(); -$materials = db("materials")->select("steel_grade")->groupBy("steel_grade")->get(); -$incomingControls = db("incoming_controls")->get(); -$steelGradeToRuGroup = db("materials")->get()->pluck("ru_group","steel_grade")->toArray(); - - -$typeOfWeldOptions = db('joint_types') - ->select('short_name_en') - ->whereNotNull('short_name_en') - ->orderBy('short_name_en') - ->get(); - -if($typeOfWeldOptions->isEmpty()) { - $fallbackTypes = ['BW','FW','SW','TW','BJ','FJ','TH','CJ']; - $typeOfWeldOptions = collect($fallbackTypes)->map(function($shortName) { - return (object) ['short_name_en' => $shortName]; - }); -} - -$relationDatas = [ - 'ste_subcontractor' => [ - 'datas' => $steSubcontractor, - 'pattern' => '{company_name_en}', - 'type' => 'select-dropdown' - ], - 'contractor' => [ - 'datas' => $mainContractor, - 'pattern' => '{company_name_en}', - 'type' => 'select-dropdown' - ], - 'general_contractor' => [ - 'datas' => $steSubcontractor, - 'pattern' => '{company_name_en}', - 'type' => 'select-dropdown' - ], - 'welding_materials_1_certificate_no' => [ - 'datas' => $naksConsumables, - 'pattern' => '{inspection_test_report}', - 'type' => 'select-dropdown' - ], - 'welding_materials_2_certificate_no' => [ - 'datas' => $naksConsumables, - 'pattern' => '{inspection_test_report}', - 'type' => 'select-dropdown', - - ], - 'welding_materials_3_certificate_no' => [ - 'datas' => db("naks_consumables") - ->select('product_name') - ->whereIn('type_of_consumable', ['Electrode / Электрод', 'Gas / Газ']) - ->groupBy('product_name') - ->get(), - 'pattern' => '{product_name}', - 'type' => 'select-dropdown' - ], - 'welding_materials_1_lot_no' => [ - 'datas' => $naksConsumables, - 'pattern' => '{batch_number}', - 'type' => 'select-dropdown', - - ], - 'welding_materials_2_lot_no' => [ - 'datas' => $naksConsumables, - 'pattern' => '{batch_number}', - 'type' => 'select-dropdown' - ], - 'welding_materials_3_lot_no' => [ - 'datas' => $naksConsumables, - 'pattern' => '{batch_number}', - 'type' => 'select-dropdown' - ], - 'element_code_1' => [ - 'type' => 'auto-complete2', - 'table' => 'm_t_o_s', - 'column' => 'component_code_id', - 'pattern' => '{component_code_id}', - 'affected' => [ - 'member_no_1' => '{description_ru}', - 'material_no_1' => '{material}', - ] - ], - 'element_code_2' => [ - 'type' => 'auto-complete2', - 'table' => 'm_t_o_s', - 'column' => 'component_code_id', - 'pattern' => '{component_code_id}', - 'affected' => [ - 'member_no_2' => '{description_ru}', - 'material_no_2' => '{material}', - ] - ], - /* - 'element_code_1' => [ - 'type' => 'auto-complete', - 'table' => 'm_t_o_s', - 'column' => 'component_code_id', - 'pattern' => '{component_code_id}', - 'affected' => [ - 'member_no_1' => '{description_ru}', - 'material_no_1' => '{material}', - ] - ], - 'element_code_2' => [ - 'type' => 'auto-complete', - 'table' => 'm_t_o_s', - 'column' => 'component_code_id', - 'affected' => [ - 'member_no_2' => '{description_ru}', - 'material_no_2' => '{material}', - ] - ], - */ - /* - 'element_code_1' => [ - 'type' => 'select-dropdown2', - 'datas' => $mtos, - 'pattern' => '{component_code_id}', - 'affected' => [ - 'member_no_1' => '{description_ru}', - 'material_no_1' => '{material}', - ] - ], - 'element_code_2' => [ - 'type' => 'select-dropdown2', - 'datas' => $mtos, - 'pattern' => '{component_code_id}', - 'affected' => [ - 'member_no_2' => '{description_ru}', - 'material_no_2' => '{material}', - ] - ], - */ - /* - 'element_code_1' => [ - 'datas' => $mtos, - 'pattern' => '{component_code_id}', - 'type' => 'select-dropdown', - 'affected' => [ - 'member_no_1' => '{description_ru}', - 'material_no_1' => '{material}', - ] - ], - 'element_code_2' => [ - 'datas' => $mtos, - 'pattern' => '{component_code_id}', - 'type' => 'select-dropdown', - 'affected' => [ - 'member_no_2' => '{description_ru}', - 'material_no_2' => '{material}', - ] - ], - */ - 'wps_no' => [ - 'datas' => $wps, - 'pattern' => '{details}', - 'type' => 'select-dropdown', - 'affected' => [ - 'wps_approval_date' => '{date}', - 'welding_method' => '{welding_process}', - ] - ], - 'welding_materials_1' => [ - 'datas' => $naksConsumablesProduct, - 'pattern' => '{product_name}', - 'type' => 'select-dropdown', - 'affected' => [ - - ], - 'filter-columns' => ['welding_materials_1_lot_no','welding_materials_1_certificate_no'], - ], - 'welding_materials_2' => [ - 'datas' => $naksConsumablesProduct, - 'pattern' => '{product_name}', - 'type' => 'select-dropdown', - 'affected' => [ - - ], - 'filter-columns' => ['welding_materials_1_lot_no','welding_materials_1_certificate_no'], - ], - /* - 'ru_material_group_1' => [ - 'datas' => $materials, - 'pattern' => '{steel_grade}', - 'type' => 'select-dropdown', - 'affected' => [ - ] - ], - 'ru_material_group_2' => [ - 'datas' => $materials, - 'pattern' => '{steel_grade}', - 'type' => 'select-dropdown', - 'affected' => [ - ] - ], - */ - 'certificate_number_of_1' => [ - 'datas' => $incomingControls, - 'pattern' => '{component_code}', - 'type' => 'select-dropdown', - 'affected' => [ - ] - ], - 'certificate_number_of_2' => [ - 'datas' => $incomingControls, - 'pattern' => '{component_code}', - 'type' => 'select-dropdown', - 'affected' => [ - ] - ], - 'heat_number_1' => [ - 'datas' => $incomingControls, - 'pattern' => '{heat_number}', - 'type' => 'select-dropdown', - 'affected' => [ - ] - ], - 'heat_number_2' => [ - 'datas' => $incomingControls, - 'pattern' => '{heat_number}', - 'type' => 'select-dropdown', - 'affected' => [ - ] - ], - 'welding_materials_3' => [ - 'datas' => $naksConsumablesFluxGas, - 'pattern' => '{product_name}', - 'type' => 'select-dropdown', - 'affected' => [ - - ], - 'filter-columns' => ['welding_materials_1_lot_no','welding_materials_1_certificate_no'], - ], - /* - 'line_number' => [ - 'type' => 'select-dropdown', - 'datas' => db('nde_matrices')->groupBy("line")->get(), - 'pattern' => '{line}', - 'affected' => [ - 'nde' => '{ndt}', - - ], - ], - */ - 'type_of_welds' => [ - 'type' => 'select-dropdown', - 'datas' => $typeOfWeldOptions, - 'pattern' => '{short_name_en}', - ], - - 'type_of_joint' => [ - 'values' => [ - 'F', - 'S', - ], - 'type' => 'manuel-select' - ], - 'nde' => [ - 'caption' => 'ISO NDT', - 'type' => 'string' - ], - 'pwht' => [ - 'values' => [ - 'YES', - 'NO', - ], - 'caption' => 'ISO PWHT', - 'type' => 'manuel-select' - ], - - - - -]; - -?> - - - -
-
- [ - 'type' => 'link-search', - 'path' => '001_Drawings/001_Engineering/', - 'pattern' => "*{iso_number}*.pdf", - 'html' => '' - ], - - 'PDF Spool ISO' => [ - 'type' => 'link-search', - 'path' => '001_Drawings/002_Iso/', - 'pattern' => "*{iso_number}*.pdf", - 'html' => '' - ], - - ]; - if(getisset("upload-pdf")) { - uploadDocument("iso", "001_Drawings/002_Iso"); - uploadDocument("engineer", "001_Drawings/001_Engineering"); - ?> -
- {{bilgi("Upload has been success!")}} -
- - - - @include("components.blocks.module-block") -
-
- - - \ No newline at end of file diff --git a/resources/views/admin/type/weldmap.blade.php b/resources/views/admin/type/weldmap.blade.php deleted file mode 100644 index b6221cc..0000000 --- a/resources/views/admin/type/weldmap.blade.php +++ /dev/null @@ -1,200 +0,0 @@ -paginate(setting('row_count')); -$tableName = "weld_logs"; -$excludeMechanicalFromSummaries = true; -$alwaysSelectColumns = ['type_of_welds']; -//dd(implode("', \n '",table_columns($tableName))); -$enableMechanicalControls = true; - -$requiredFields = [ - 'general_contractor', - 'contractor', - 'ste_subcontractor', - 'project', - 'design_area', - 'fluid_code', - 'line_number', - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'no_of_the_joint_as_per_as_built_survey', - 'type_of_joint', - 'type_of_welds', - 'fit_up_date', - 'welding_date', - //'element_code_1', - 'pose_no_1', - 'member_no_1', - 'material_no_1', - 'product_standart_1', - 'ru_material_group_1', - 'nps_1', - // 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - // 'element_code_2', - 'pose_no_2', - 'member_no_2', - 'material_no_2', - 'product_standart_2', - 'ru_material_group_2', - 'nps_2', - // 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - // 'nde', - // 'pwht', -]; - -if(getisset("only-show-column")) { - $onlyShowColumn = true; -} - -$tableType = "datagrid"; - -$newTitle = "New Joint"; -/* -$topButtons = [ - 0 => [ - 'href' => '#', - 'html' => 'Upload PDF', - 'class' => 'upload-pdf' - ], - -]; - -if($u->level == "Admin") { - $topButtons[] = [ - 'href' => 'https://devqms.stellarcons.com/cron?type=sync-from-linelists-nde-matrix&all', - 'html' => 'Sync All Data to ', - 'class' => 'sync-all-data' - ]; -} -*/ - - -if(!isset($blockGroup)) { - $blockGroup = [ - 'Information About the PIPE' => [ - 'general_contractor', - 'contractor', - 'ste_subcontractor', - 'project', - 'piping_type', - 'design_area', - 'fluid_code', - 'line_number', - - ], - /* - 'Information About the PIPE' => [ - 'general_contractor', - 'contractor', - 'design_area', - 'line_number', - 'fluid_code', - ], - */ - 'Iso Information' => [ - 'iso_number', - 'quantity_of_iso', - 'iso_rev', - 'spool_number', - 'spool_number2', - 'no_of_the_joint_as_per_as_built_survey', - ], - 'Information about the welding' => [ - 'type_of_joint', - 'type_of_welds', - 'fit_up_date', - 'welding_date', - 'wps_no', - 'wps_approval_date', - ], - 'Welding Process' => [ - 'welding_method', - 'welding_materials_1', - 'welding_materials_1_lot_no', - 'welding_materials_1_certificate_no', - 'welding_materials_2', - 'welding_materials_2_lot_no', - 'welding_materials_2_certificate_no', - 'welding_materials_3', - 'welding_materials_3_lot_no', - 'welding_materials_3_certificate_no', - 'fitter_name', - 'real_welder_1', - 'real_welder_2', - - ], - 'Control Information' => [ - 'mechanic_supervisor', - 'mechanic_supervisor_control_date', - 'welding_supervisor', - 'welding_supervisor_control_date', - 'fit_up_report_no', - 'fit_up_report_date', - 'welding_report_no', - 'welding_report_date', - - ], - - 'Element 1' => [ - 'element_code_1', - 'pose_no_1', - 'member_no_1', - 'material_no_1', - 'product_standart_1', - - 'ru_material_group_1', - 'certificate_number_of_1', - 'heat_number_1', - 'nps_1', - 'thickness_by_asme_1', - 'outside_diameter_1', - 'wall_thickness_1', - - ], - 'Element 2' => [ - 'element_code_2', - 'pose_no_2', - 'member_no_2', - 'material_no_2', - 'product_standart_2', - - 'ru_material_group_2', - 'certificate_number_of_2', - 'heat_number_2', - 'nps_2', - 'thickness_by_asme_2', - 'outside_diameter_2', - 'wall_thickness_2', - - ], - - 'Thickness Range' => [ - 'nde', - 'pwht', - 'p_id', - 'test_package_no', - 'circuit_number', - ], - - ]; -} - - - - - - - -?> -@include("admin.type.weldmap.main") \ No newline at end of file diff --git a/resources/views/admin/type/work-permit-hierarchy.blade.php b/resources/views/admin/type/work-permit-hierarchy.blade.php deleted file mode 100644 index f318fba..0000000 --- a/resources/views/admin/type/work-permit-hierarchy.blade.php +++ /dev/null @@ -1,912 +0,0 @@ -select("project")->groupBy("project")->pluck("project")->toArray(); - ?> - {{col2("col-md-12")}} - -
-
-
-
- -
- -
-
-
-
- -
- -
-
-
-

Placeholder Usage:

-

Click on the copy icon next to placeholders to copy them to clipboard. Use the tabs to access all available placeholders from both tables.

-
-
-
- -
-
- - -
-
- -
-
-
-
- -

Work Permit Hierarchical Structure

-
- -
- @php - // Get all column names from both tables - $workPermitColumns = Schema::getColumnListing('work_permit_documents'); - $subcontractorColumns = Schema::getColumnListing('subcontractors'); - - $workPermitUsers = DB::table("work_permit_documents") - ->select([ - 'work_permit_documents.id', - 'work_permit_documents.name_surname', - 'work_permit_documents.company', - 'work_permit_documents.certificates_number', - 'work_permit_documents.duty', - 'work_permit_documents.document_number', - 'work_permit_documents.attorney', - 'work_permit_documents.attorney_date', - 'work_permit_documents.zone as project', - 'work_permit_documents.sign_order as personel_sign_order', - 'subcontractors.company_name_ru', - 'subcontractors.company_name_en', - 'subcontractors.job_description', - 'subcontractors.company_code', - 'subcontractors.operation_type', - 'subcontractors.city', - 'subcontractors.address', - 'subcontractors.logo', - 'subcontractors.sign_order as firma_sign_order' - ]) - ->join("subcontractors", "work_permit_documents.company", "subcontractors.company_name_ru") - ->orderBy('subcontractors.operation_type') - ->orderBy('work_permit_documents.sign_order') - ->get(); - - // Prepare array for single project names - $allSingleProjects = []; - $projectMapping = []; - - // Parse comma-separated projects and organize - foreach ($workPermitUsers as $user) { - $projectParts = explode(',', $user->project); - foreach ($projectParts as $singleProject) { - $singleProject = trim($singleProject); - if (!empty($singleProject) && !in_array($singleProject, $allSingleProjects)) { - $allSingleProjects[] = $singleProject; - } - - if (!empty($singleProject)) { - if (!isset($projectMapping[$singleProject])) { - $projectMapping[$singleProject] = []; - } - - // Add this user to this project - $found = false; - foreach ($projectMapping[$singleProject] as $existingUser) { - if ( - $existingUser->name_surname === $user->name_surname && - $existingUser->operation_type === $user->operation_type && - $existingUser->personel_sign_order === $user->personel_sign_order - ) { - $found = true; - break; - } - } - - if (!$found) { - $projectMapping[$singleProject][] = $user; - } - } - } - } - - // Group companies by operation_type - $companyOperationMapping = []; - foreach ($workPermitUsers as $user) { - $key = $user->operation_type; - if (!isset($companyOperationMapping[$key])) { - $companyOperationMapping[$key] = []; - } - - if (!in_array($user->company_name_ru, $companyOperationMapping[$key])) { - $companyOperationMapping[$key][] = $user->company_name_ru; - } - } - - // Sort projects alphabetically - ksort($projectMapping); - @endphp - -
-
WORK PERMIT PROJECTS
-
- @foreach($projectMapping as $singleProject => $users) - @php - // Group by operation_type for each project - $operationGroups = collect($users)->groupBy('operation_type'); - @endphp - -
-
- {{ $singleProject }} -
-
- @foreach($operationGroups as $operationType => $operationGroup) - @php - // Get companies for this operation type in this project - $companiesForThisOp = collect($operationGroup)->pluck('company_name_ru')->unique()->implode(', '); - @endphp -
-
-
Operation Type: {{ $operationType }}
-
- Company: {{ $companiesForThisOp }} - @php - $masterSignOrders = collect($operationGroup)->pluck('firma_sign_order')->filter()->unique()->implode(', '); - @endphp - @if(!empty($masterSignOrders)) - {{ $masterSignOrders }} - @endif -
-
-
- @php - $sortedUsers = collect($operationGroup)->sortBy('personel_sign_order'); - @endphp - - @foreach($sortedUsers as $user) -
-
- {{ $user->name_surname }} - @if(isset($user->personel_sign_order) && !empty($user->personel_sign_order)) - {{ $user->personel_sign_order }} - @else - N/A - @endif -
-
-
-
- Duty: {{ $user->duty }} -
-
- Job Description: {{ $user->job_description }} -
-
- Company: {{ $user->company_name_ru }} -
-
- Personnel Sign Order: - @if(isset($user->personel_sign_order) && !empty($user->personel_sign_order)) - {{ $user->personel_sign_order }} - @else - N/A - @endif -
-
- Company Sign Order: - @if(isset($user->firma_sign_order) && !empty($user->firma_sign_order)) - {{ $user->firma_sign_order }} - @else - N/A - @endif -
-
- Placeholders: -
- - -
-
-
-
- Format: {job_description+firma_sign_order_personel_sign_order_field} -
- - @foreach($workPermitColumns as $column) -
- job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_" . $column . "}" !!}"> - {!! "{" . $user->job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_" . $column . "}" !!} - - -
- @endforeach -
-
-
-
-
- Format: {job_description+firma_sign_order_personel_sign_order_sub_field} -
- - @foreach($subcontractorColumns as $column) -
- job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_sub_" . $column . "}" !!}"> - {!! "{" . $user->job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_sub_" . $column . "}" !!} - - -
- @endforeach -
-
-
-
- - - -
-
Common Placeholders
-
- job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_name_surname}" !!}"> - {!! "{" . $user->job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_name_surname}" !!} - - -
-
- job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_company_name}" !!}"> - {!! "{" . $user->job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_company_name}" !!} - - -
-
- job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_certificate_no}" !!}"> - {!! "{" . $user->job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_certificate_no}" !!} - - -
-
- job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_duty}" !!}"> - {!! "{" . $user->job_description . $user->firma_sign_order . "_" . $user->personel_sign_order . "_duty}" !!} - - -
-
-
-
-
-
- @endforeach -
-
- @endforeach -
-
- @endforeach -
-
-
-
-
-
- - - - - - \ No newline at end of file diff --git a/resources/views/admin/type/work-permit-personel-list.blade.php b/resources/views/admin/type/work-permit-personel-list.blade.php deleted file mode 100644 index 74b2723..0000000 --- a/resources/views/admin/type/work-permit-personel-list.blade.php +++ /dev/null @@ -1,415 +0,0 @@ -paginate(setting('row_count')); -$tableName = "work_permit_documents"; - -$firstUploadFolder = "005_PTO/01_Prikaz"; -$firstUploadTitle = "Upload Prikaz Document"; - -// Fetch document templates for usage in relationDatas (lookup) -// We keep this for the main grid lookup, but the modal will use AJAX. -$documentTemplates = db("document_templates")->whereNotNull("slug")->where("y", 1)->get(); - -$relationDatas = [ - /* - 'duty' => [ - 'datas' => db("duty_types")->get(), - 'pattern' => '{title}', - 'type' => 'select-dropdown', - ], - */ - 'zone' => [ - 'datas' => db("weld_logs")->groupBy("project")->get(), - 'pattern' => '{project}', - 'type' => 'multiple-choice' - ], - 'third_party' => [ - 'datas' => db("subcontractors")->where("job_description", "THIRD PARTY")->get(), - 'pattern' => '{company_name_ru}', - 'type' => 'select-dropdown' - ], - 'company' => [ - 'datas' => db("subcontractors")->get(), - 'pattern' => '{company_name_ru}', - 'type' => 'select-dropdown' - ], - /* - 'assigned_documents' => [ - 'datas' => $documentTemplates, - 'pattern' => '{slug}', - 'type' => 'multiple-choice', - 'width' => 1000 - ], - */ - 'sign_order' => [ - 'type' => 'integer' - ], -]; - -$blockGroup = [ - 'Company Information' => [ - 'job_description', - 'company_sign_order', - ], - 'Document Information' => [ - 'document_code', - 'document_number', - 'revision', - 'date_of_issue', - 'status', - 'description', - ], - 'Company and Duty Information' => [ - 'company', - 'duty', - 'dept', - 'zone', - 'third_party', - ], - 'Certificate Information' => [ - 'certificates_number', - 'certificate_date', - 'level', - ], - 'Personal Information' => [ - 'name_surname', - 'id_no', - 'attorney', - 'attorney_date', - ], - 'Document Assignment' => [ - 'assigned_documents', - 'sign_order', - ], -]; - -//$tableType = "datagrid"; -$prependColumns = [ - 'Download' => [ - 'type' => 'link-search', - 'path' => '005_PTO/01_Prikaz/', - 'pattern' => "*{document_number}*.pdf", - 'html' => '' - ], - -]; - -$dataGridOptions = ' - customizeColumns: function(columns) { - // Original logic from datagrid.blade.php to preserve header filter behavior - columns.forEach(function(column) { - var originalHeaderFilter = column.headerFilter || {}; - column.headerFilter = { - ...originalHeaderFilter, - dataSource: function(options) { - if (originalHeaderFilter.dataSource && typeof originalHeaderFilter.dataSource === "function") { - originalHeaderFilter.dataSource(options); - } - options.dataSource.postProcess = function(results) { - var hasBlanks = false; - var filteredResults = []; - results.forEach(function(item) { - if (item.value === null || item.value === undefined || item.value === "") { - hasBlanks = true; - } else if (item.text !== "(Blanks)" && item.text !== "(blanks)") { - filteredResults.push(item); - } - }); - if (hasBlanks) { - filteredResults.push({ - text: "(Blanks)", - value: null - }); - } - return filteredResults.length > 0 ? filteredResults : results; - }; - } - }; - }); - - // Custom logic for assigned_documents - var col = columns.find(c => c.dataField === "assigned_documents"); - if(col) { - col.caption = "' . e2("Assigned Documents") . '"; - col.width = 400; // Give it more space - - // Custom Editor with Button - col.editCellTemplate = function(cellElement, cellInfo) { - var div = $("
").addClass("d-flex align-items-center"); - - var textBox = $("
").dxTextBox({ - value: cellInfo.value, - readOnly: true, - placeholder: "' . e2("Select documents...") . '" - }).appendTo(div).addClass("flex-grow-1 mr-2").dxTextBox("instance"); - - $("
").dxButton({ - icon: "menu", - hint: "' . e2("Select Documents") . '", - onClick: function() { - openDocumentSelectionModal(cellInfo.value, function(newValue) { - cellInfo.setValue(newValue); - textBox.option("value", newValue); - }); - } - }).appendTo(div); - - div.appendTo(cellElement); - }; - - // Custom View Template (Badges) - col.cellTemplate = function(container, options) { - var text = options.value || ""; - if(!text) return; - - var parts = text.split(","); - parts.forEach(function(part) { - if(part.trim() !== "") { - $("") - .addClass("badge badge-info mr-1") - .css("font-size", "85%") - .text(part) - .appendTo(container); - } - }); - }; - } - }, -'; - -?> - - - - - - -
-
- @include("admin.type.document.upload") - - @include("components.blocks.module-block") -
-
- -{{-- Custom Modal for Document Selection --}} -
- - - -@include("admin.type.weldmap.upload-modal") diff --git a/resources/views/admin/type/wpq-follow-up.blade.php b/resources/views/admin/type/wpq-follow-up.blade.php deleted file mode 100644 index 3cca6ba..0000000 --- a/resources/views/admin/type/wpq-follow-up.blade.php +++ /dev/null @@ -1,498 +0,0 @@ -paginate(setting('row_count')); -$tableName = "welder_tests"; -//$tableType = "classic-table"; -if(!getesit("table-type","")) { - $tableType = get("table-type"); -} -$naksWelders = db("naks_welders")->groupBy("welder_id")->get(); -$naksWelders2 = db("naks_welders")->get(); -$materials = db("materials")->whereNotIn("ru_group", ['*'])->groupBy("ru_group")->get(); -$materials2 = db("materials")->get(); -$wps = db("w_p_s")->get(); -$welderTests = db("welder_tests")->get(); -$jointTypes = db("joint_types")->get(); -$weldingConsumables = db("welding_consumables")->get(); -$weldingMethods = db("welding_methods")->get(); -$hazardClasses = db("hazard_classes")->get(); -$results = db("results")->get(); - -$weldTypes = []; -$requiredFields = [ - 'wpq_test_type', -]; -foreach($naksWelders AS $naksWelder) { - $weldType = explode(",", $naksWelder->weld_type); - foreach($weldType AS $wt) { - if(trim($wt) !="") { - if(!in_array($wt, $weldTypes)) { - $weldTypes[] = $wt; - } - } - } -} - -$weldTypeObject = []; -foreach($weldTypes AS $weldType) { - $data = (object) []; - $data->weld_type = $weldType; - $weldTypeObject[] = $data; -} - -$weldTypes = $weldTypeObject; - -//$onlyShowColumn = true; - -$blockGroup = [ - 'General Information' => [ - 'download', - 'kss_journal', - 'wpq_test_type', - 'wpq_document_no', - 'name_surname', - 'naks_id', - 'naks_no', - 'welding_method', - 'joint_type', - 'grade_1', - 'grade_2', - 'material_group_1', - 'material_group_2', - - 'technology_range', - 'material_group_gost', - 'wps_no', - 'welding_date', - 'kss_number', - 'wire', - 'electrode', - 'flux', - 'shield_gas', - 'naks_technology_group', - 'evaluated_norm', - 'approval_date', - 'naks_validity', - 'shop_or_field', - 'status', - ], - 'Dimensions Test Pieces (mm)' => [ - 'diameter', - 'thickness', - ], - 'Qualification Range' => [ - - 'dia_min', - 'dia_max', - 'thk_min', - 'thk_max', - ], - 'VT' => [ - 'vt_date', - 'vt_report_no', - 'vt_result', - ], - 'HT' => [ - 'ht_date', - 'ht_report_no', - 'ht_result', - ], - 'PT' => [ - 'pt_date', - 'pt_report_no', - 'pt_result', - ], - 'PMI' => [ - 'pmi_date', - 'pmi_report_no', - 'pwht_date', - 'pwht_diagram', - 'pwht_report_no', - ], - 'RT' => [ - 'rt_date', - 'rt_report_no', - 'rt_result', - ], - 'Tensile' => [ - 'tensile_date', - 'tensile_report_no', - 'tensile_result', - ], - 'Bending' => [ - 'bending_date', - 'bending_report_no', - 'bending_result', - ], - 'Impact' => [ - 'impact_date', - 'impact_report_no', - 'impact_result', - ], - 'Metallography' => [ - 'metallography_date', - 'metallography_report_no', - 'metallography_result', - ], - 'Ferrit' => [ - 'ferrit_date', - 'ferrit_report_no', - 'ferrit_result', - ], - 'Corrosion' => [ - 'intergranullar_corrosion_test_date', - 'intergranullar_corrosion_report_no', - 'intergranullar_corrosion_result', - ], - -]; - -$columnRedesign['diameter']['class'] = "col-md-6"; -$columnRedesign['thickness']['class'] = "col-md-6"; -$columnRedesign['pwht_operator_name_surname']['class'] = "col-md-6"; -$columnRedesign['pwht_operator_id']['class'] = "col-md-6"; - -$columnsArray = ['vt', 'rt', 'ht', 'pt', 'pmi', 'bending', 'impact', 'metallography', 'ferrit', 'tensile']; -foreach($columnsArray AS $columnKey) { - $columnRedesign[$columnKey . '_date']['class'] = "col-md-6"; - $columnRedesign[$columnKey . '_report_no']['class'] = "col-md-6"; - $columnRedesign[$columnKey . '_result']['class'] = "col-md-12"; -} - -/* -$prependColumns = [ - 'Download' => [ - 'type' => 'link-search', - 'path' => '003_Welding_Database/0006_WPQ/', - 'pattern' => "{wpq_document_no}*.pdf", - 'html' => '' - ], -]; -*/ - -$firstUploadFolder = "003_Welding_Database/0006_WPQ"; -$firstUploadTitle = "Upload WPQ Document"; - ?> - - [ - 'values' => [ - 'PIPE', - 'PLATE', - ], - 'type' => 'manuel-select' - ], - /* - 'name_surname' => [ - 'table' => "naks_welders", - 'column' => "welder_name_ru", - 'pattern' => "{welder_name_ru}", - 'type' => 'auto-complete2', - - 'affected' => [ - 'naks_id' => '{welder_id}', - ], - - - ], - - 'naks_id' => [ - 'table' => "naks_welders", - 'column' => "welder_id", - 'pattern' => "{welder_id}", - 'type' => 'auto-complete2', - - 'affected' => [ - 'name_surname' => '{welder_name_ru}', - ], - - - ], - */ - /* - 'naks_id' => [ - 'datas' => $naksWelders, - 'pattern' => "{welder_id}", - 'type' => 'select-dropdown', - 'filter-columns' => [ - 'naks_no' - ] - - - ], - */ - /* - 'material_group_gost' => [ - 'datas' => $materials, - 'pattern' => "{ru_group}", - 'type' => 'select-dropdown' - - - ], - */ - /* - 'naks_no' => [ - 'datas' => $naksWelders2, - 'pattern' => "{naks_certificate_no}", - 'type' => 'multiple-choice', - 'affected' => [ - // 'name_surname' => '{welder_name_ru}', - // 'material_group_gost' => '{material_1}', - 'naks_validity' => '{period_of_validity}', - // 'joint_type' => '{weld_type}', - // 'welding_method' => '{process}', - ], - - ], - */ - /* - 'wps_no' => [ - 'datas' => $wps, - 'pattern' => '{details}', - 'type' => 'select-dropdown', - 'affected' => [ - 'material_group_1' => '{russian_standard_group_no_1}', - 'material_group_2' => '{russian_standard_group_no_2}', - 'welding_method' => '{welding_process}', - - 'wire' => '{filler_metals_sfa_no}', - 'electrode' => '{filler_metals_sfa_no}', - 'flux' => '{filler_metals_sfa_no}', - - 'naks_technology_group' => '{technology_category}', - ] - ], - */ - /* - 'material_group_1' => [ - 'datas' => $materials, - 'pattern' => '{ru_group}', - 'type' => 'select-dropdown', - 'filter-columns' => ['grade_1'] - ], - 'material_group_2' => [ - 'datas' => $materials, - 'pattern' => '{ru_group}', - 'type' => 'select-dropdown', - 'filter-columns' => ['grade_2'] - ], - */ - /* - 'grade_1' => [ - 'datas' => $materials2, - 'pattern' => '{steel_grade}', - 'type' => 'multiple-choice' - ], - 'grade_2' => [ - 'datas' => $materials2, - 'pattern' => '{steel_grade}', - 'type' => 'multiple-choice' - ], - */ - - - 'shop_or_field' => [ - 'values' => db("locations")->get()->pluck("title")->toArray(), - 'type' => 'manuel-select' - ], - 'dia_max' => [ - 'type' => 'float', - 'validationType' => 'async' - ], - 'dia_min' => [ - 'type' => 'float', - 'validationType' => 'async' - ], - 'thk_min' => [ - 'type' => 'float', - 'validationType' => 'async' - ], - 'thk_max' => [ - 'type' => 'float', - 'validationType' => 'async' - ], - 'status' => [ - 'values' => [ - 'Active', - 'Inactive', - 'Transfer to', - 'Black list', - 'Exit' - ], - 'type' => 'manuel-select' - ], - - 'joint_type' => [ - 'datas' => $weldTypes, - 'pattern' => '{weld_type}', - 'type' => 'multiple-choice' - ], - /* - 'welding_method' => [ - 'datas' => $weldingMethods, - 'pattern' => '{ru_short_name} + {en_welding_number}', - 'type' => 'multiple-choice', - 'seperator' => ' + ', - ], - */ - 'wire' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{brend}', - 'type' => 'select-dropdown' - ], - 'coupon_position' => [ - 'datas' => db("welding_positions")->get(), - 'pattern' => '{gost} / {en} / {asme}', - 'type' => 'select-dropdown' - ], - 'electrode' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{brend}', - 'type' => 'select-dropdown' - ], - 'flux' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{brend}', - 'type' => 'select-dropdown' - ], - 'shielding_gas' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{brend}', - 'type' => 'select-dropdown' - ], - 'naks_technology_group' => [ - 'datas' => $hazardClasses, - 'pattern' => '{serial_number}', - 'type' => 'multiple-choice' - ], - - 'download' => [ - 'type' => 'link-search', - 'html' => '' - ], - - -]; -$resultColumnsArray = ['vt', 'rt', 'ht', 'pt', 'bending', 'impact', 'metallography', 'ferrit', 'tensile', 'intergranullar_corrosion']; -foreach($columnsArray AS $columnKey) { - $relationDatas[$columnKey . '_result'] = [ - 'datas' => $results, - 'pattern' => '{title}', - 'type' => 'select-dropdown' - ]; -} - -?> - - - - -
-
- ', 'Exit'], 'and', ['status', '<>', 'Inactive'], 'and', ['status', '<>', 'Black list']]); - } - } - }); - - // Tümü Butonu - toolbarItems.unshift({ - location: 'before', - widget: 'dxButton', - options: { - text: 'All', - icon: 'refresh', - stylingMode: 'text', - onClick: function() { - e.component.clearFilter(); - } - } - }); - - // Reset View Butonu - toolbarItems.push({ - location: 'after', - widget: 'dxButton', - options: { - icon: 'refresh', - text: 'Reset View', - hint: 'Reset View', - onClick: function () { - localStorage.removeItem(storageKey); - location.reload(); - } - } - }); - }, - "; - ?> - @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
- -@include("admin.type.wpq-follow-up.datagrid-script") \ No newline at end of file diff --git a/resources/views/admin/type/wps.blade.php b/resources/views/admin/type/wps.blade.php deleted file mode 100644 index 72757ae..0000000 --- a/resources/views/admin/type/wps.blade.php +++ /dev/null @@ -1,278 +0,0 @@ -paginate(setting('row_count')); -$tableName = "w_p_s"; - -// Limited summary - exclude thickness columns -$limitedSummaryColumns = ['min_outside_diameter', 'max_outside_diameter']; -$pqr = db("prosedure_qualification_records")->get(); -$naksCertificates = db("naks_certificates")->groupBy("certificate_no")->get(); -$weldingMethods = db("welding_methods")->whereNotNull("ru_short_name")->get(); -$jointTypes = db("joint_types")->get(); -$ruWeldingGeometries = db("ru_welding_geometries")->get(); -$weldingPositions = db("welding_positions")->get(); -$materials = db("materials")->groupBy("steel_grade")->get(); -$currentTypes = db("current_types")->get(); -$workTypes = db("work_types")->get(); -$weldingConsumables = db("welding_consumables")->get(); -$gas = db("naks_consumables")->whereIn("type_of_consumable", ['Flux / Флюсы', 'Gas / Газ'])->groupBy("product_name")->get()->pluck("product_name")->toArray(); - -$relationDatas = [ - 'type' => [ - 'values' => [ - 'pWPS', - 'WPS', - ], - 'type' => 'manuel-select' - ], - /* - 'pqr_no' => [ - 'table' => "prosedure_qualification_records", - 'column' => "pqr_no", - 'pattern' => "{pqr_no}", - 'type' => 'auto-complete2', - 'affected' => [ - 'russian_standard_group_no_1' => '{russian_standart_group_no}', - 'russian_standard_group_no_2' => '{russian_standart_group_no_2}', - 'p_no_from' => '{p_no_from}', - 'p_no_to' => '{p_no_to}', - 'filler_metals_sfa_no' => '{brend}', - 'filler_metals_gost' => '{filter_metals_gost}', - 'pre_heating_min' => '{pre_heating_min}', - 'inter_pass_max' => '{inter_pass_max}', - 'pwht_temp_range' => '{pwht_temp_range}', - 'pwht_min_time' => '{pwht_min_time}', - 'shielding_gas' => '{shielding_gas}', - 'backing_gas' => '{backing_gas}', - 'current_polarity' => '{current_polarity}', - 'work_type' => '{work_type}', - // 'joint_type_definition' => '{joint_design}', - 'naks_certificate_no' => '{naks_technology}', - 'technology_category' => '{technology_category}', - 'work_type' => '{base_metal}', - 'welding_process' => '{welding_process}', - ] - ], - */ - 'joint_type_ru' => [ - 'datas' => $ruWeldingGeometries, - 'pattern' => '{connection_symbol}', - 'type' => 'multiple-choice', - ], - 'welding_process' => [ - 'datas' => $weldingMethods, - 'pattern' => '{ru_short_name}/{en_welding_number}', - 'type' => 'multiple-choice', - ], - 'naks_certificate_no' => [ - 'datas' => $naksCertificates, - 'pattern' => '{short_number}-{certificate_no}', - 'type' => 'multiple-choice', - 'seperator' => ' + ' - ], - - 'filler_metals_sfa_no' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{brend}', - 'type' => 'multiple-choice', - 'filter-columns' => ['gost_specification'], - 'seperator' => ' + ', - 'max' => 2 - ], - /* - 'filler_metals_gost' => [ - 'datas' => $weldingConsumables, - 'pattern' => '{gost_specification}', - 'type' => 'multiple-choice', - 'filter-columns' => ['brend'] - ], - */ - 'work_type' => [ - 'datas' => $workTypes, - 'pattern' => '{title_en}', - 'type' => 'select-dropdown' - ], - 'group_of_technical_devices' => [ - 'table' => 'prosedure_qualification_records', - 'datas' => $naksCertificates, - 'value' => 'technology_category', - 'text' => ['technology_category'], - 'type' => 'select', - 'affected' => [] - ], - 'welding_process_method' => [ - 'datas' => $weldingMethods, - 'pattern' => '{ru_short_name}+{aws_short_name}/{en_welding_number}', - 'type' => 'multiple-choice' - ], - 'joint_type' => [ - 'datas' => $jointTypes, - 'pattern' => '{short_name_en}', - 'type' => 'select-dropdown' - ], - 'ru_joint_geometry' => [ - 'datas' => $ruWeldingGeometries, - 'pattern' => '{connection_symbol}', - 'type' => 'select-dropdown' - ], - 'current_polarity' => [ - 'datas' => $currentTypes, - 'pattern' => '{title}', - 'type' => 'multiple-choice' - ], - 'welding_position' => [ - 'datas' => $weldingPositions, - 'pattern' => '{gost}({en})', - 'type' => 'multiple-choice' - ], - 'backing_gas' => [ - 'values' => $gas, - 'type' => 'manuel-select' - ], - 'shielding_gas' => [ - 'values' => $gas, - 'type' => 'manuel-select' - ], - 'download' => [ - 'type' => 'link-search', - 'html' => '' - ], - /* - 'material_type_grade' => [ - 'datas' => $materials, - 'pattern' => '{steel_grade}', - 'type' => 'multiple-choice', - 'max' => 2 - ], - */ - -]; - -$blockGroup = [ - 'WPS Details' => [ - 'download', - 'type', - 'details', - 'rev_no', - 'pqr_no', - 'date', - 'naks_certificate_no', - 'technology_category', - 'welding_process', - 'joint_type', - 'joint_type_ru', - 'welding_position', - ], - 'Base Metals' => [ - - 'material_type_grade', - 'material_type_grade2', - 'russian_standard_group_no_1', - 'russian_standard_group_no_2', - 'p_no_from', - 'p_no_to', - ], - 'Diameter Range' => [ - 'min_outside_diameter', - 'max_outside_diameter', - ], - 'Thickness Range' => [ - 'min_thick', - 'max_thick', - ], - 'Filler Metals' => [ - 'filler_metals_sfa_no', - 'filler_metals_gost', - ], - 'Pre Heating' => [ - 'pre_heating_min', - 'inter_pass_max', - ], - 'PWHT' => [ - 'pwht_temp_range', - 'pwht_min_time', - ], - 'GAS' => [ - 'shielding_gas', - 'backing_gas', - 'current_polarity', - 'joint_type_definition', - ], - 'Result' => [ - 'work_type', - 'remarks', - 'approved_date', - 'status', - ], -]; - -/* -$prependColumns = [ - 'Download' => [ - 'type' => 'link-search', - 'path' => '003_Welding_Database/0005_WPS/', - 'pattern' => "{details}*.pdf", - 'html' => '' - ] -]; -*/ - -$firstUploadFolder = "003_Welding_Database/0005_WPS"; -$firstUploadTitle = "Upload WPS Document"; - -$columnRedesign['diameter-range']['class'] = "col-md-6"; -$columnRedesign['thickness-range']['class'] = "col-md-6"; -$columnRedesign['filler-metals']['class'] = "col-md-6"; -$columnRedesign['pre-heating']['class'] = "col-md-6"; -$columnRedesign['pwht']['class'] = "col-md-6"; -$columnRedesign['gas']['class'] = "col-md-12"; - -?> - - -@include("admin.type.wps.datagrid-script") - -
-
- @include("admin.type.document.upload") - @include("components.blocks.module-block") -
-
\ No newline at end of file diff --git a/resources/views/admin/type/wqtr.blade.php b/resources/views/admin/type/wqtr.blade.php deleted file mode 100644 index 5e638cc..0000000 --- a/resources/views/admin/type/wqtr.blade.php +++ /dev/null @@ -1,68 +0,0 @@ -
-
-
-

{{e2($c->title)}}

-
-
- groupBy("wpq_document_no")->select("wpq_document_no")->groupBy("wpq_document_no")->get()->pluck("wpq_document_no")->toArray(); - $path = "storage/documents/004_QA/0015_WQTR"; - $welderTests = glob("$path/*.*"); - ?> -
-
-
- - - -
-
-
-
{{e2("Generate All")}}
-
- -
- -
-
- -
- - - -
- -
-
- - - - - \ No newline at end of file