@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-12">
            <nav aria-label="breadcrumb">
                <ol class="breadcrumb pb-3">
                    <li class="breadcrumb-item"><a href="{{ route('home') }}">Home</a></li>
                    <li class="breadcrumb-item active" aria-current="page">Maklumat Pengguna</li>
                </ol>
            </nav>
            <div class="card">
                <div class="card-body text-center">
                    <div class="col-md-12" style="margin-right:auto;margin-left:auto">

                        @if(Session::has('success'))
                        <div class="alert alert-success mt-2">{{ Session::get('success') }} </div>
                        @endif
                        <div class="row form-group">
                            <div class="col-md-6">
                                <div class="row form-group">
                                    <div class="col-md-6">Nama</div>
                                    <div class="col-md-6"><input type="text" class="form-control" readonly value="{{ strtoupper($auth_user->name) }}"></div>
                                    <div class="col-md-6">No Telefon</div>
                                    <div class="col-md-6"><input type="text" class="form-control" readonly value="{{ $auth_user->no_telefon }}"></div>
                                    <div class="col-md-6">Email</div>
                                    <div class="col-md-6"><input type="text" class="form-control" readonly value="{{ $auth_user->email }}"></div>
                                </div>
                            </div>
                            <div class="col-md-6">
                                <div class="row form-group">
                                    <div class="col-md-6">No Kad Pengenalan</div>
                                    <div class="col-md-6"><input type="text" class="form-control" readonly value="{{ $auth_user->no_kp }}"></div>
                                    <div class="col-md-6">Jawatan</div>
                                    <div class="col-md-6"><input type="text" class="form-control" readonly value="{{ strtoupper($auth_user->role_harian) }}"></div>
                                    <div class="col-md-6">Baki Perubatan</div>
                                    <div class="col-md-6"><input type="text" class="form-control" readonly value="{{ 'RM '. number_format($auth_user->perubatan,2) }}"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <a href="{{ route('profile.edit') }}" class="btn btn-primary">Kemaskini Profil</a>
                    <a href="{{ route('user.password') }}" class="btn btn-primary">Kemaskini Katalaluan</a>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection