Browse Source

update merubah id di QR Code

master
Gunawan19621 1 year ago
parent
commit
67a26c26d8
  1. 5
      app/Http/Controllers/PetiController.php
  2. 2
      resources/views/dashboard/Master_Data/Manajemen_Peti/Peti/all_print.blade.php
  3. 2
      resources/views/dashboard/Master_Data/Manajemen_Peti/Peti/show.blade.php

5
app/Http/Controllers/PetiController.php

@ -99,11 +99,6 @@ class PetiController extends Controller
'active' => 'menu-peti', 'active' => 'menu-peti',
]; ];
// $petiqr = Peti::find($id);
// $qrcode = base64_encode(QrCode::format('svg')->size(150)->errorCorrection('H')->generate(
// $petiqr->fix_lot . ";" . $petiqr->id . ";" . $petiqr->warehouse->id
// ));
return view('dashboard.Master_Data.Manajemen_Peti.Peti.show', $data); return view('dashboard.Master_Data.Manajemen_Peti.Peti.show', $data);
} }

2
resources/views/dashboard/Master_Data/Manajemen_Peti/Peti/all_print.blade.php

@ -68,7 +68,7 @@
QrCode::format('svg') QrCode::format('svg')
->size(150) ->size(150)
// ->errorCorrection('H') // ->errorCorrection('H')
->generate($data->fix_lot . ';' . $data->id_incre . ';' . $data->warehouse->id_incre), ->generate($data->fix_lot . ';' . $data->id . ';' . $data->warehouse->id),
); );
?> ?>

2
resources/views/dashboard/Master_Data/Manajemen_Peti/Peti/show.blade.php

@ -36,7 +36,7 @@
<label for="fix_lot" class="col-form-label d-flex justify-content-center align-items-center">QR <label for="fix_lot" class="col-form-label d-flex justify-content-center align-items-center">QR
Code:</label> Code:</label>
<div class="d-flex justify-content-center align-items-center mb-2"> <div class="d-flex justify-content-center align-items-center mb-2">
{!! QrCode::size(150)->generate($peti->fix_lot . ';' . $peti->id_incre . ';' . $peti->warehouse->id_incre) !!} {!! QrCode::size(150)->generate($peti->fix_lot . ';' . $peti->id . ';' . $peti->warehouse->id) !!}
</div> </div>
<div class="d-flex justify-content-center mt-2 mb-3"> <div class="d-flex justify-content-center mt-2 mb-3">
<a href="{{ route('dashboard.peticetakpdf.cetakpdf', $peti->id) }}" class="btn btn-info" <a href="{{ route('dashboard.peticetakpdf.cetakpdf', $peti->id) }}" class="btn btn-info"

Loading…
Cancel
Save