booking.blade.php 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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>Booking Information</h1>
  9. <div class="ml-auto">
  10. <a href="{{ route('admin_tour_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-12">
  16. <div class="card">
  17. <div class="card-body">
  18. <div class="table-responsive">
  19. <table class="table table-bordered" id="example1">
  20. <thead>
  21. <tr>
  22. <th>SL</th>
  23. <th>Invoice No</th>
  24. <th>User Info</th>
  25. <th>Total Persons</th>
  26. <th>Paid Amount</th>
  27. <th>Payment Method</th>
  28. <th>Payment Status</th>
  29. <th>Show Invoice</th>
  30. <th>Action</th>
  31. </tr>
  32. </thead>
  33. <tbody>
  34. @foreach($all_data as $item)
  35. <tr>
  36. <td>{{ $loop->iteration }}</td>
  37. <td>
  38. {{ $item->invoice_no }}
  39. </td>
  40. <td>
  41. <strong>Name:</strong> {{ $item->user->name }}<br>
  42. <strong>Email:</strong> {{ $item->user->email }}<br>
  43. <strong>Phone:</strong> {{ $item->user->phone }}
  44. </td>
  45. <td>{{ $item->total_person }}</td>
  46. <td>{{ $item->paid_amount }}</td>
  47. <td>{{ $item->payment_method }}</td>
  48. <td>
  49. @if($item->payment_status == 'Completed')
  50. <span class="badge bg-success">Completed</span>
  51. @else
  52. <span class="badge bg-danger">Pending</span>
  53. <a href="{{ route('admin_tour_booking_approve',$item->id) }}">Approve It</a>
  54. @endif
  55. </td>
  56. <td>
  57. <a href="{{ route('admin_tour_invoice',$item->invoice_no) }}" class="badge bg-primary text-decoration-none" target="_blank">Show Invoice</a>
  58. </td>
  59. <td class="pt_10 pb_10">
  60. <a href="{{ route('admin_tour_booking_delete',$item->id) }}" class="btn btn-danger" onClick="return confirm('Are you sure?');"><i class="fas fa-trash"></i></a>
  61. </td>
  62. </tr>
  63. @endforeach
  64. </tbody>
  65. </table>
  66. </div>
  67. </div>
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. </section>
  73. </div>
  74. @endsection