No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

update.blade.php 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. @extends('layouts.layout-user')
  2. @section('content')
  3. <h2 style="display: inline-block; margin-right: 10px;">Update Status Tindakan Pelaporan Bahaya</h2>
  4. <div class="row">
  5. <div class="w-full">
  6. <span class="card shadow text-decoration-none" style="display: flex;">
  7. <div class="card-body" style="display: flex; flex-direction: column;">
  8. <form class="form-horizontal" action="{{ route('tindakan.update', $pelaporans->id) }}" method="POST" enctype="multipart/form-data" style="display: flex; flex-wrap: wrap;">
  9. @csrf
  10. @method('PUT')
  11. <div class="container">
  12. <div class="row">
  13. <div class="col-lg-6">
  14. <div style="width: 100%;">
  15. <span>Status Tindakan Pelaporan</span>
  16. <div class="input-group input-group-merge" style="max-width: 400px; margin-bottom: 10px;">
  17. <select class="form-select" name="tindakan_id" aria-describedby="defaultFormControlHelp">
  18. @foreach($tindakans as $tindakan)
  19. <option value="{{ $tindakan->id }}" {{ $pelaporans->tindakan_id == $tindakan->id ? 'selected' : '' }}>
  20. {{ $tindakan->statusTindakan }}
  21. </option>
  22. @endforeach
  23. </select>
  24. </div>
  25. </div>
  26. </div>
  27. <div style="width: 100%; text-align: left; margin-top: 10px;">
  28. <a href="{{ route('tindakan.index') }}" class="btn btn-delete" style="display: inline-block; width: 100px; background-color: #ffffff; color: #4f60e0; border: 2px solid #4f60e0; border-radius: 4px; cursor: pointer; text-align: center;">Back</a>
  29. <button type="submit" name="submit" class="btn btn-delete" style="background-color: #4f60e0; color: #fff; border: none; border-radius: 4px; cursor: pointer;">Update</button>
  30. </div>
  31. </div>
  32. </div>
  33. </form>
  34. </div>
  35. </span>
  36. </div>
  37. </div>
  38. @endsection