Commit 5b1ebacb by Azhan Hannan

Isu:

Role hilang
Status tak update kpd ‘Inactive’
parent 196e792f
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
@section('content') @section('content')
<div class="ui segment"> <div class="ui segment">
<a class="ui blue left ribbon label">Add New Role</a> <a class="ui blue left ribbon label">Edit Role</a>
<br><br> <br><br>
<form class="ui form" action="{{ route('timesheet::maintenance.updaterole' )}}" method="POST"> <form class="ui form" action="{{ route('timesheet::maintenance.updaterole' )}}" method="POST">
......
...@@ -40,9 +40,12 @@ ...@@ -40,9 +40,12 @@
<div class="field"> <div class="field">
<label>Role</label> <label>Role</label>
<!-- <?php
// dd(data_get($team,'role_id'));
?> -->
<input type="hidden" name="role" value="{{data_get($team,'role_id')}}"> <input type="hidden" name="role" value="{{data_get($team,'role_id')}}">
<select name="role" class="ui fluid dropdown"> <select name="role" class="ui fluid dropdown">
<option value="">{{data_get($teamRole,'role')}}</option> <option value="{{data_get($team,'role_id')}}">{{data_get($teamRole,'role')}}</option>
@foreach($role as $key => $value) @foreach($role as $key => $value)
<option value="{{data_get($value,'id')}} ">{{data_get($value,'role')}}</option> <option value="{{data_get($value,'id')}} ">{{data_get($value,'role')}}</option>
@endforeach @endforeach
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment