videos.blade.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. @extends('admin.layout.master')
  2. @section('main_content')
  3. @include('admin.layout.nav')
  4. @include('admin.layout.sidebar')
  5. <div class="main-content">
  6. <section class="section">
  7. <div class="section-header justify-content-between">
  8. <h1>Videos of {{ $package->name }}</h1>
  9. <div class="ml-auto">
  10. <a href="{{ route('admin_package_index') }}" class="btn btn-primary"><i class="fas fa-plus"></i> back to previous</a>
  11. </div>
  12. </div>
  13. <div class="section-body">
  14. <div class="row">
  15. <div class="col-md-7">
  16. <div class="card">
  17. <div class="card-body">
  18. <div class="table-responsive">
  19. <table class="table table-bordered">
  20. <thead>
  21. <tr>
  22. <th>SL</th>
  23. <th>Video</th>
  24. <th>Action</th>
  25. </tr>
  26. </thead>
  27. <tbody>
  28. @foreach($package_videos as $item)
  29. <tr>
  30. <td>{{ $loop->iteration }}</td>
  31. <td>
  32. <iframe class="iframe1" width="560" height="315" src="https://www.youtube.com/embed/{{ $item->video }}" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
  33. </td>
  34. <td>
  35. <a href="{{ route('admin_package_video_delete',$item->id) }}" class="btn btn-danger btn-sm" onClick="return confirm('Are you sure?')">Delete</a>
  36. </td>
  37. </tr>
  38. @endforeach
  39. </tbody>
  40. </table>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="col-md-5">
  46. <div class="card">
  47. <div class="card-body">
  48. <form action="{{ route('admin_package_video_submit',$package->id) }}" method="post">
  49. @csrf
  50. <div class="mb-3">
  51. <label class="form-label">Video *</label>
  52. <input type="text" name="video" class="form-control">
  53. </div>
  54. <div class="mb-3">
  55. <label class="form-label"></label>
  56. <button type="submit" class="btn btn-primary">Submit</button>
  57. </div>
  58. </form>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </div>
  64. </section>
  65. </div>
  66. @endsection