@extends('sites._global_forms.form_modal_edit') @php $modal_id = 'ModalForm_edit'; $route_address_edit = 'm_szkol_proces_szkolenia_form_edit_save'; $route_params_edit = [$data->id]; $click_event_name = '.open_modal_edit'; $bind_open_handler = false; $rekord_id = $data->id; $forma_0_value = null; $forma_1_value = null; @endphp @section('form_body_edit')
@php $org_ids = DB::table('sw000_organizacja')->whereNull('nieaktualny')->first('ids'); $ids = $org_ids->ids ?? null; $obszary = DB::connection('mysql-2') ->table('v010_obszary_organizacji') ->where('status_aktywacji', '1') ->where('org_ids', $ids) ->get(); @endphp
@php $rodzaje = DB::connection('mysql-2') ->table('zs050_rodzaj_szkolenia') ->get(); @endphp
@php $komorki_org = DB::table('sw020_komorki_organizacyjne')->get(); $komorka_id = $data->szkolenie_dla_ko_id; @endphp
@php $forma_0_value = $forma_1_value = null; if ($data->forma_szkolenia == 0) { $forma_0_value = 1; } elseif ($data->forma_szkolenia == 1) { $forma_1_value = 1; } @endphp
@php $placeRaw = trim((string) ($data->miejsce_szkolenia ?? '')); $placeAscii = @iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $placeRaw); $placeCompare = preg_replace('/\s+/', ' ', mb_strtolower(trim((string) ($placeAscii !== false ? $placeAscii : $placeRaw)), 'UTF-8')); $isInternalTrainingPlace = ($placeCompare === 'szkolenie wewnętrzne'); @endphp
@php $status_aktualny = $data->status; @endphp
@endsection @section('java_script_edit') @endsection