edit.blade.php 1000 B

12345678910111213141516171819202122232425262728293031
  1. @extends('layouts.app')
  2. @section('content')
  3. <div class="container">
  4. <div class="col-12 col-md-8 offset-md-2 pt-4">
  5. <div class="card shadow-none border">
  6. <div class="card-header bg-white font-weight-bold d-flex justify-content-between align-items-center">
  7. <span>Edit Status</span>
  8. <a class="btn btn-outline-primary btn-sm font-weight-bold" href="{{$status->url()}}">Back to post</a>
  9. </div>
  10. <div class="card-body">
  11. <form method="post">
  12. @csrf
  13. <div class="form-group">
  14. <label class="font-weight-bold text-muted small">License</label>
  15. <select class="form-control" name="license">
  16. @foreach($licenses as $license)
  17. <option value="{{$license['id']}}" {{$status->firstMedia()->license == $license['id'] ? 'selected' : ''}}>{{$license['title']}}</option>
  18. @endforeach
  19. </select>
  20. </div>
  21. <hr>
  22. <button class="btn btn-primary btn-block font-weight-bold">Save</button>
  23. </form>
  24. </div>
  25. </div>
  26. </div>
  27. </div>
  28. @endsection