pengesahan pembida

This commit is contained in:
faiqahzaman
2022-02-10 16:55:15 +08:00
parent c4f446c274
commit 5f1bc45165
2 changed files with 8 additions and 4 deletions
+6 -1
View File
@@ -32,7 +32,12 @@ class PembidaController extends Controller
public function index()
{
// $alluser = User::all();
$alluser = User::doesntHave('roles')->where('user_type','=',2)->get();
$alluser = User::doesntHave('roles')
->where('user_type','=',2)
->get();
// dd($alluser);
// $allroles = Role::all()->pluck('name');
// $user = Auth::user();
// $user->assignRole('admin');
+2 -3
View File
@@ -35,13 +35,12 @@
<h4 class="col-md-3">Identity Card/Passport Picture</h4>
<div class="form-group col-md-9">
@foreach ($files as $file)
<div class="col-4 form-check form-check-inline">
<div class=".col-6 .col-sm-4 form-check form-check-inline">
<?php
// $picic = imagecreatefromstring($file['ic64']);
// header('Content-type: image/'.$file['file_type']);
?>
<img src="{{$file['ic64']}}" alt="">
{{$file['ic64']}}
<img src="data:image/png;base64, {{ $file['filename'] }}" alt="Image Preview" style="width:350px; height:250px"/>
</div>
@endforeach
</div>