@extends('layouts.app_operasi')

@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"><a href="{{ route('profile') }}">Maklumat Pengguna</a></li>
                    <li class="breadcrumb-item active" aria-current="page">Ubah 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">
                        <form action="{{ route('profile.editstore') }}" method="post">
                        @csrf
                        <div class="row form-group">
                            <div class="col-md-12">
                                <div class="row form-group">
                                    <div class="col-md-6">NAMA</div>
                                    <div class="col-md-6"><input type="text" name="nama" class="form-control @error('nama') is-invalid @enderror" value="{{ $auth_user->name }}">
                                        @error('nama') <span class="text-danger">{{ $message }}</span> @enderror
                                    </div>
                                    <div class="col-md-6">NO TELEFON</div>
                                    <div class="col-md-6"><input type="text" name="notel" class="form-control @error('notel') is-invalid @enderror" value="{{ $auth_user->no_telefon }}">
                                        @error('notel') <span class="text-danger">{{ $message }}</span> @enderror
                                    </div>
                                </div>
                            </div>
                            <div class="col-md-12">
                                <div class="row form-group">
                                    <div class="col-md-6">NO KP</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="{{ $auth_user->roles }}"></div>
                                </div>
                            </div>
                        </div>
                            <button type="submit" class="btn btn-primary">Kemaskini Profil</button>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection