<div class="row">
    <div class="col-md-12">
    <div class="card card-round">
        <div class="card-header">
            <div class="card-head-row card-tools-still-right">
            <h4 class="card-title">Maklumat Lesen</h4>
            </div>
        </div>        
        <div class="card-body"> 
    @if(auth()->user()->hasRole(['pembantu tadbir', 'super'])&&(in_array($permohonan->status_progress, ['lawatan tapak','ulasan pegawai', 'ulasan pengarah', 'sokong dibawa ke mesyuarat']))&&(is_null($permohonan->no_akaun_permohonan)))       
            <form action="{{route('pt.simpan-nolesen')}}" method="post">
                @csrf
                <input type="hidden" name="permohonan_id" id="permohonan_id" value="{{$permohonan->id}}">
                <div class="form-group">
                    <label for="no_akaun_lesen">No Akaun Lesen</label>
                    <input type="text" class="form-control" id="no_akaun_lesen" name="no_akaun_lesen"
                    value="{{ old('no_akaun_lesen', $permohonan->no_akaun_permohonan) }}" />
                </div> 
                <div class="row">
                    <div class="col-md-6">
                        <div class="form-group">
                            <label for="kod_lesen">Kod Lesen</label>
                            <input type="text" class="form-control" id="kod_lesen" name="kod_lesen"
                            value="{{ old('kod_lesen', $permohonan->kod_lesen) }}" />
                        </div> 
                    </div>
                </div>
                <div class="form-group">
                    <input id="simpannofail" class="btn btn-sm btn-secondary" type="submit" name="simpannofail" value="Simpan" />
                </div>
            </form>
    @else
                <div class="form-group">
                    <label for="no_akaun_lesen">No Akaun Lesen</label>
                    <input type="text" class="form-control" id="no_akaun_lesen" disabled
                    value="{{ old('no_akaun_lesen', $permohonan->no_akaun_permohonan) }}" />
                </div> 
                <div class="form-group">
                    <label for="kod_lesen">Kod Lesen</label>
                    <input type="text" class="form-control" id="kod_lesen" disabled
                    value="{{ old('kod_lesen', $permohonan->kod_lesen) }}" />
                </div> 
    @endif
        </div>
    </div>
    </div> <!-- /.col -->      

</div>
@if(!is_null($permohonan->lesen_no_resit))
<div class="row">
    <div class="col-md-12">
        <div class="card card-round">
            <div class="card-header">
                <div class="card-head-row card-tools-still-right">
                <h4 class="card-title">Maklumat Bayaran Lesen</h4>
                </div>
            </div>        
            <div class="card-body"> 
                    <div class="form-group">
                        <label for="no_resit_lesen">No Resit Bayaran Lesen</label>
                        <input type="text" class="form-control" id="no_resit_lesen" disabled
                        value="{{ old('no_resit_lesen', $permohonan->lesen_no_resit) }}" />
                    </div> 
                    <div class="form-group">
                        <label for="dt_bayar_lesen">Tarikh Bayaran</label>
                        <input type="text" class="form-control" id="dt_bayar_lesen" disabled
                        value="{{ old('dt_bayar_lesen', $permohonan->lesen_dt_bayar) }}" />
                    </div> 
            </div>
        </div>
    </div> <!-- /.col -->     
</div>
@endif