update revisi 1
This commit is contained in:
@@ -21,9 +21,6 @@
|
||||
}).then(() => {
|
||||
if ("{{ Session::get('redirect_url') }}") {
|
||||
window.location.href = "{{ Session::get('redirect_url') }}";
|
||||
@php
|
||||
Session::forget('redirect_url');
|
||||
@endphp
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -39,9 +36,6 @@
|
||||
}).then(() => {
|
||||
if ("{{ Session::get('redirect_url') }}") {
|
||||
window.location.href = "{{ Session::get('redirect_url') }}";
|
||||
@php
|
||||
Session::forget('redirect_url');
|
||||
@endphp
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -89,8 +89,19 @@
|
||||
<input type="text" class="form-control" id="phone" name="phone"
|
||||
placeholder="Enter phone number" required value="{{ old('phone') }}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group col-md-6 col-sm-6">
|
||||
<label for="cabang_id">Cabang</label>
|
||||
<select name="cabang_id" id="cabang_id" class="form-control">
|
||||
<option value="">Select Cabang</option>
|
||||
@foreach ($cabangs as $cabang)
|
||||
<option value="{{ $cabang->id }}" {{ old('cabang') == $cabang->id ? 'selected' : '' }}>
|
||||
{{ $cabang->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary mt-4 pr-4 pl-4">Save</button>
|
||||
<a href="{{ route('admin.admins.index') }}"
|
||||
|
||||
@@ -93,7 +93,17 @@
|
||||
placeholder="Enter phone number" required value="{{ $admin->phone }}">
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-group col-md-6 col-sm-6">
|
||||
<label for="cabang_id">Cabang</label>
|
||||
<select name="cabang_id" id="cabang_id" class="form-control">
|
||||
<option value="">Select Cabang</option>
|
||||
@foreach ($cabangs as $cabang)
|
||||
<option value="{{ $cabang->id }}" {{ $admin->getMyCabangAndRegion()['cabang'] == $cabang->name ? 'selected' : '' }}>
|
||||
{{ $cabang->name }}
|
||||
</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn-primary mt-4 pr-4 pl-4">Save</button>
|
||||
|
||||
@@ -46,7 +46,9 @@
|
||||
<th width="5%">{{ __('Sl') }}</th>
|
||||
<th width="10%">{{ __('Name') }}</th>
|
||||
<th width="10%">{{ __('Email') }}</th>
|
||||
<th width="40%">{{ __('Roles') }}</th>
|
||||
<th width="20%">{{ __('Roles') }}</th>
|
||||
<th width="5%">Region</th>
|
||||
<th width="5%">Cabang</th>
|
||||
<th width="15%">{{ __('Action') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@@ -63,6 +65,8 @@
|
||||
</span>
|
||||
@endforeach
|
||||
</td>
|
||||
<td>{{ $admin->getMyCabangAndRegion()['region'] }}</td>
|
||||
<td>{{ $admin->getMyCabangAndRegion()['cabang'] }}</td>
|
||||
<td>
|
||||
<a class="btn btn-success text-white" href="{{ route('admin.admins.expense', $admin->id) }}">View Expense</a>
|
||||
@if (auth()->user()->can('admin.edit'))
|
||||
|
||||
@@ -55,6 +55,8 @@
|
||||
<th width="10%">Name</th>
|
||||
<th width="10%">Email</th>
|
||||
<th width="40%">Roles</th>
|
||||
<th width="20%">Region</th>
|
||||
<th width="20%">Cabang</th>
|
||||
<th width="15%">Action</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
Reference in New Issue
Block a user