Advertisement
nisalman3019

blade

Jan 27th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1. @extends('layouts.frontLayouts')
  2. @section('title','Requsition For WMM and Off-grid')
  3. @section('content')
  4.  
  5. @section('orders_active','active_expand') {{-- for add active class for expand --}}
  6.  
  7. <div class="content-header">
  8. <!-- leftside content header -->
  9. <div class="leftside-content-header">
  10. <ul class="breadcrumbs">
  11. <li><i class="fa fa-list" aria-hidden="true"></i><a href="#">{{__('form.orderL')}}</a></li>
  12. </ul>
  13. </div>
  14. </div>
  15.  
  16. @include('common._message')
  17.  
  18.  
  19. <!--start data table-->
  20. <div class="panel">
  21. <div class="panel-content">
  22. <div class="table-responsive desktop_table-responsive"> {{--style="overflow-x: unset;"--}}
  23. <div id="basic-table_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
  24. <div class="row">
  25. <div class="col-sm-12">
  26.  
  27. {{-- {{Form::open(['route'=>['wmm.product.list.search',$prefix],'method'=>'GET'])}}
  28. <!--start search -->
  29. <div class="row" style="margin-bottom: 30px;">
  30. <div class="col-sm-6 col-md-6">
  31.  
  32. </div>
  33.  
  34. <div class="col-sm-5 col-md-4">
  35. <input type="search" class="custom-input custom-search" name="search" placeholder="Search">
  36. </div>
  37.  
  38. <div class="col-sm-6 col-md-2">
  39. <button type="submit" class="badge filter-button" style="float: right;"><i class="fa fa-filter" aria-hidden="true"></i> Filter</button>
  40. </div>
  41. </div>
  42. <!--end search -->
  43. {{Form::close()}} --}}
  44.  
  45.  
  46. <h4>{{__('form.orderL')}}</h4>
  47. <hr>
  48. <table id="basic-table"
  49. class="data-table table table-striped nowrap table-hover dataTable no-footer"
  50. cellspacing="0" width="100%" role="grid" aria-describedby="basic-table_info">
  51. <thead>
  52. <tr>
  53. <th># {{__('form.total')}} :{{count($requsitions)}}</th>
  54. <th>{{__('form.orderId')}}</th>
  55. <th>{{__('form.orderStatus')}}</th>
  56. <th>{{__('form.paymentStatus')}}</th>
  57. <th>{{__('form.paymentMode')}}</th>
  58. <th>Total Payable</th>
  59. <th>Paid Amount</th>
  60. <th>Details</th>
  61. </tr>
  62. </thead>
  63. <tbody>
  64. <?php $i = 1;?>
  65. @foreach($requsitions as $item)
  66. <tr role="row" class="odd">
  67. <td>{{$i++}}</td>
  68. <td>{{$item->requisitionId}}</td>
  69.  
  70. <td>{{$item->order_status}}<br>
  71. <span style="font-size: 10px;">{{date("jS F, Y", strtotime($item->updated_at))}}</span>
  72. </td>
  73.  
  74. <td>{{$item->payment_status}}<br>
  75. <span style="font-size: 10px;">{{date("jS F, Y", strtotime($item->updated_at))}}</span>
  76. </td>
  77. <td>
  78. @if($item->payment_option_id==2)
  79. Full Payment
  80.  
  81. @elseif($item->payment_option_id==5)
  82. Cash On Delivery
  83.  
  84. @else
  85. Not Available
  86.  
  87. @endif
  88. </td>
  89.  
  90. <td>{{$item->amount}}</td>
  91.  
  92. <td>
  93.  
  94. <?php
  95. $total = 0;
  96. $lists = DB::table($prefix . '_requisition_data')->where('requsition_id', $item->id)->get();
  97. foreach ($lists as $list) {
  98. $total = $total + ($list->price * $list->qty);
  99. }
  100. ?>
  101.  
  102. @if($item->payment_option_id==5)
  103.  
  104. @if($item->status=="pending")
  105. <a href="{{url($prefix.'/wmm/requisition/due-payment/'.$item->id)}}" class="btn edit-button">Pay Now</a>
  106.  
  107. @else
  108. {{$total}}
  109.  
  110. @endif
  111.  
  112. @else
  113. {{$total}}
  114.  
  115. @endif
  116.  
  117.  
  118. </td>
  119.  
  120.  
  121.  
  122. <td>
  123.  
  124.  
  125. <a href="{{url($prefix.'/wmm/requisition-payment/'.$item->id)}}"
  126. class="btn edit-button" style="font-size: 12px"><i class="fa fa-plus"
  127. aria-hidden="true"></i>{{__('form.paymentDetails')}}
  128. </a><br>
  129.  
  130.  
  131. <a href="{{url($prefix.'/wmm/requisition/details/'.$item->id)}}"
  132. class="btn edit-button" style="background:#EF4A23;font-size: 12px"><i
  133. class="fa fa-eye"
  134. aria-hidden="true"></i> {{__('form.orderDetails')}}</a>
  135.  
  136. <!-- <a href="{{url($prefix.'/wmm/requisition-payment/'.$item->id)}}" class="btn edit-button" style="font-size: 12px"><i class="fa fa-plus" aria-hidden="true"></i> Payment Details</a> -->
  137.  
  138.  
  139. <!-- <a href="{{url($prefix.'/wmm/package-order/details/'.$item->id)}}" class="btn edit-button" style="background:#EF4A23;font-size: 12px"><i class="fa fa-eye" aria-hidden="true"></i> Order Details</a> -->
  140.  
  141.  
  142. {{-- @if($item->approve != null)
  143. <a href="#"
  144. style="margin-left: 20px;color:black;">{{__('form.stockSet')}}</a>
  145. @endif--}}
  146.  
  147. </td>
  148.  
  149. </tr>
  150. @endforeach
  151.  
  152. </tbody>
  153. </table>
  154.  
  155.  
  156. </div>
  157. </div>
  158. </div>
  159. </div>
  160.  
  161.  
  162. </div>
  163. </div>
  164. <!--end data table -->
  165.  
  166.  
  167. @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement