diff --git a/Modules/HospitalPortal/Http/Controllers/Api/RequestLogController.php b/Modules/HospitalPortal/Http/Controllers/Api/RequestLogController.php index 7ce80499..59a1ab48 100644 --- a/Modules/HospitalPortal/Http/Controllers/Api/RequestLogController.php +++ b/Modules/HospitalPortal/Http/Controllers/Api/RequestLogController.php @@ -63,7 +63,8 @@ class RequestLogController extends Controller // Insert data ke tabel organizations $organization_id = DB::table('organizations') ->insertGetId([ - 'name' => $request->name_provider, + 'name' => $request->name_provider, + 'code' => $request->name_provider, 'type' => 'hospital', 'created_at' => now(), 'created_by' => auth()->user()->id diff --git a/resources/views/pdf/final_log_page_1.blade.php b/resources/views/pdf/final_log_page_1.blade.php index 5d0fb05d..7449dc5e 100644 --- a/resources/views/pdf/final_log_page_1.blade.php +++ b/resources/views/pdf/final_log_page_1.blade.php @@ -193,7 +193,7 @@
@php - if($logoPerusahaan->path) { + if(!empty($logoPerusahaan->path)) { $imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(storage_path('app/public/' . $logoPerusahaan->path))); echo ''; } @@ -224,7 +224,7 @@ Kepada : - {{ $rumahSakit->nama_rumahsakit }} + {{ !empty($rumahSakit->nama_rumahsakit) }} Plan Polis : {{ $dataMember->code_plan }} @@ -307,7 +307,7 @@ Alamat Provider : - {{ $rumahSakit->alamat_rumahsakit }} + {{ !empty($rumahSakit->alamat_rumahsakit) }} No. Rekam Medis @@ -380,19 +380,19 @@
@php - if ($logoPerusahaan->code === 'VALEIND') { + if (!empty($logoPerusahaan->code) === 'VALEIND') { @endphp Alarm Center Vale MKS (LinkSehat) Office
- {{ $logoPerusahaan->name }}
+ {{ !empty($logoPerusahaan->name) }}
Lt. 1, Jalan Somba Opu 281, Ujung Pandang, Losari,
Kec. Makassar, Kota Makassar, Sulawesi Selatan 90113 @php - } else if($logoPerusahaan->code === 'PETROLAB') { + } else if(!empty($logoPerusahaan->code) === 'PETROLAB') { @endphp Alarm Center Vale MKS (LinkSehat) Office
- {{ $logoPerusahaan->name }}
+ {{ !empty($logoPerusahaan->name) }}
Jalan Pisangan Lama 3 Nomor 28 Jatinegara, RT.9/RW.3,
Pisangan Tim., Kec. Pulo Gadung, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13230 @php @@ -400,7 +400,7 @@ @endphp Alarm Center Vale MKS (LinkSehat) Office
- {{ $logoPerusahaan->name }}
+ {{ !empty($logoPerusahaan->name) }}
@php diff --git a/resources/views/pdf/final_log_page_2.blade.php b/resources/views/pdf/final_log_page_2.blade.php index 076697d5..380a945a 100644 --- a/resources/views/pdf/final_log_page_2.blade.php +++ b/resources/views/pdf/final_log_page_2.blade.php @@ -266,19 +266,19 @@
@php - if ($logoPerusahaan->code === 'VALEIND') { + if (!empty($logoPerusahaan->code) === 'VALEIND') { @endphp Alarm Center Vale MKS (LinkSehat) Office
- {{ $logoPerusahaan->name }}
+ {{ !empty($logoPerusahaan->name) }}
Lt. 1, Jalan Somba Opu 281, Ujung Pandang, Losari,
Kec. Makassar, Kota Makassar, Sulawesi Selatan 90113 @php - } else if($logoPerusahaan->code === 'PETROLAB') { + } else if(!empty($logoPerusahaan->code) === 'PETROLAB') { @endphp Alarm Center Vale MKS (LinkSehat) Office
- {{ $logoPerusahaan->name }}
+ {{ !empty($logoPerusahaan->name) }}
Jalan Pisangan Lama 3 Nomor 28 Jatinegara, RT.9/RW.3,
Pisangan Tim., Kec. Pulo Gadung, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13230 @php @@ -286,7 +286,7 @@ @endphp Alarm Center Vale MKS (LinkSehat) Office
- {{ $logoPerusahaan->name }}
+ {{ !empty($logoPerusahaan->name) }}
@php diff --git a/resources/views/pdf/req_log_page_1.blade.php b/resources/views/pdf/req_log_page_1.blade.php index 9ee3162e..d2203f3a 100644 --- a/resources/views/pdf/req_log_page_1.blade.php +++ b/resources/views/pdf/req_log_page_1.blade.php @@ -193,7 +193,7 @@
@php - if($logoPerusahaan->path) { + if(!empty($logoPerusahaan->path)) { $imgSrc = 'data:image/png;base64,' . base64_encode(file_get_contents(storage_path('app/public/' . $logoPerusahaan->path))); echo ''; } @@ -224,7 +224,7 @@ Kepada : - {{ $rumahSakit->nama_rumahsakit }} + {{ !empty($rumahSakit->nama_rumahsakit) }} Plan Polis : {{ $dataMember->code_plan }} @@ -307,7 +307,7 @@ Alamat Provider : - {{ $rumahSakit->alamat_rumahsakit }} + {{ !empty($rumahSakit->alamat_rumahsakit) }} No. Rekam Medis @@ -391,19 +391,19 @@
@php - if ($logoPerusahaan->code === 'VALEIND') { + if (!empty($logoPerusahaan->code) === 'VALEIND') { @endphp Alarm Center Vale MKS (LinkSehat) Office
- {{ $logoPerusahaan->name }}
+ {{ !empty($logoPerusahaan->name) }}
Lt. 1, Jalan Somba Opu 281, Ujung Pandang, Losari,
Kec. Makassar, Kota Makassar, Sulawesi Selatan 90113 @php - } else if($logoPerusahaan->code === 'PETROLAB') { + } else if(!empty($logoPerusahaan->code) === 'PETROLAB') { @endphp Alarm Center Vale MKS (LinkSehat) Office
- {{ $logoPerusahaan->name }}
+ {{ !empty($logoPerusahaan->name) }}
Jalan Pisangan Lama 3 Nomor 28 Jatinegara, RT.9/RW.3,
Pisangan Tim., Kec. Pulo Gadung, Kota Jakarta Timur, Daerah Khusus Ibukota Jakarta 13230 @php @@ -411,7 +411,7 @@ @endphp Alarm Center Vale MKS (LinkSehat) Office
- {{ $logoPerusahaan->name }}
+ {{ !empty($logoPerusahaan->name) }}
@php