index.blade.php 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. @extends('seller.layouts.app')
  2. @section('panel_content')
  3. <div class="aiz-titlebar mt-2 mb-4">
  4. <div class="row align-items-center">
  5. <div class="col-md-6">
  6. <h1 class="h3">{{ translate('Coupons') }}</h1>
  7. </div>
  8. </div>
  9. </div>
  10. <div class="row gutters-10 justify-content-center">
  11. <div class="col-md-4 mx-auto mb-3" >
  12. <a href="{{ route('seller.coupon.create')}}">
  13. <div class="p-3 rounded mb-3 c-pointer text-center bg-white shadow-sm hov-shadow-lg has-transition">
  14. <span class="size-60px rounded-circle mx-auto bg-secondary d-flex align-items-center justify-content-center mb-3">
  15. <i class="las la-plus la-3x text-white"></i>
  16. </span>
  17. <div class="fs-18 text-primary">{{ translate('Add New Coupon') }}</div>
  18. </div>
  19. </a>
  20. </div>
  21. </div>
  22. <div class="card">
  23. <div class="card-header row gutters-5">
  24. <div class="col">
  25. <h5 class="mb-md-0 h6">{{ translate('All Coupons') }}</h5>
  26. </div>
  27. </div>
  28. <div class="card-body">
  29. <table class="table aiz-table p-0">
  30. <thead>
  31. <tr>
  32. <th data-breakpoints="lg">#</th>
  33. <th>{{translate('Code')}}</th>
  34. <th data-breakpoints="lg">{{translate('Type')}}</th>
  35. <th data-breakpoints="lg">{{translate('Start Date')}}</th>
  36. <th data-breakpoints="lg">{{translate('End Date')}}</th>
  37. <th width="10%">{{translate('Options')}}</th>
  38. </tr>
  39. </thead>
  40. <tbody>
  41. @foreach($coupons as $key => $coupon)
  42. <tr>
  43. <td>{{$key+1}}</td>
  44. <td>{{$coupon->code}}</td>
  45. <td>@if ($coupon->type == 'cart_base')
  46. {{ translate('Cart Base') }}
  47. @elseif ($coupon->type == 'product_base')
  48. {{ translate('Product Base') }}
  49. @endif</td>
  50. <td>{{ date('d-m-Y', $coupon->start_date) }}</td>
  51. <td>{{ date('d-m-Y', $coupon->end_date) }}</td>
  52. <td class="text-right">
  53. <a class="btn btn-soft-primary btn-icon btn-circle btn-sm" href="{{route('seller.coupon.edit', encrypt($coupon->id) )}}" title="{{ translate('Edit') }}">
  54. <i class="las la-edit"></i>
  55. </a>
  56. <a href="#" class="btn btn-soft-danger btn-icon btn-circle btn-sm confirm-delete" data-href="{{route('seller.coupon.destroy', $coupon->id)}}" title="{{ translate('Delete') }}">
  57. <i class="las la-trash"></i>
  58. </a>
  59. </td>
  60. </tr>
  61. @endforeach
  62. </tbody>
  63. </table>
  64. </div>
  65. </div>
  66. @endsection
  67. @section('modal')
  68. @include('modals.delete_modal')
  69. @endsection