Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @extends('layouts.frontLayouts')
- @section('title','Requsition For WMM and Off-grid')
- @section('content')
- @section('orders_active','active_expand') {{-- for add active class for expand --}}
- <div class="content-header">
- <!-- leftside content header -->
- <div class="leftside-content-header">
- <ul class="breadcrumbs">
- <li><i class="fa fa-list" aria-hidden="true"></i><a href="#">{{__('form.orderL')}}</a></li>
- </ul>
- </div>
- </div>
- @include('common._message')
- <!--start data table-->
- <div class="panel">
- <div class="panel-content">
- <div class="table-responsive desktop_table-responsive"> {{--style="overflow-x: unset;"--}}
- <div id="basic-table_wrapper" class="dataTables_wrapper form-inline dt-bootstrap no-footer">
- <div class="row">
- <div class="col-sm-12">
- {{-- {{Form::open(['route'=>['wmm.product.list.search',$prefix],'method'=>'GET'])}}
- <!--start search -->
- <div class="row" style="margin-bottom: 30px;">
- <div class="col-sm-6 col-md-6">
- </div>
- <div class="col-sm-5 col-md-4">
- <input type="search" class="custom-input custom-search" name="search" placeholder="Search">
- </div>
- <div class="col-sm-6 col-md-2">
- <button type="submit" class="badge filter-button" style="float: right;"><i class="fa fa-filter" aria-hidden="true"></i> Filter</button>
- </div>
- </div>
- <!--end search -->
- {{Form::close()}} --}}
- <h4>{{__('form.orderL')}}</h4>
- <hr>
- <table id="basic-table"
- class="data-table table table-striped nowrap table-hover dataTable no-footer"
- cellspacing="0" width="100%" role="grid" aria-describedby="basic-table_info">
- <thead>
- <tr>
- <th># {{__('form.total')}} :{{count($requsitions)}}</th>
- <th>{{__('form.orderId')}}</th>
- <th>{{__('form.orderStatus')}}</th>
- <th>{{__('form.paymentStatus')}}</th>
- <th>{{__('form.paymentMode')}}</th>
- <th>Total Payable</th>
- <th>Paid Amount</th>
- <th>Details</th>
- </tr>
- </thead>
- <tbody>
- <?php $i = 1;?>
- @foreach($requsitions as $item)
- <tr role="row" class="odd">
- <td>{{$i++}}</td>
- <td>{{$item->requisitionId}}</td>
- <td>{{$item->order_status}}<br>
- <span style="font-size: 10px;">{{date("jS F, Y", strtotime($item->updated_at))}}</span>
- </td>
- <td>{{$item->payment_status}}<br>
- <span style="font-size: 10px;">{{date("jS F, Y", strtotime($item->updated_at))}}</span>
- </td>
- <td>
- @if($item->payment_option_id==2)
- Full Payment
- @elseif($item->payment_option_id==5)
- Cash On Delivery
- @else
- Not Available
- @endif
- </td>
- <td>{{$item->amount}}</td>
- <td>
- <?php
- $total = 0;
- $lists = DB::table($prefix . '_requisition_data')->where('requsition_id', $item->id)->get();
- foreach ($lists as $list) {
- $total = $total + ($list->price * $list->qty);
- }
- ?>
- @if($item->payment_option_id==5)
- @if($item->status=="pending")
- <a href="{{url($prefix.'/wmm/requisition/due-payment/'.$item->id)}}" class="btn edit-button">Pay Now</a>
- @else
- {{$total}}
- @endif
- @else
- {{$total}}
- @endif
- </td>
- <td>
- <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>{{__('form.paymentDetails')}}
- </a><br>
- <a href="{{url($prefix.'/wmm/requisition/details/'.$item->id)}}"
- class="btn edit-button" style="background:#EF4A23;font-size: 12px"><i
- class="fa fa-eye"
- aria-hidden="true"></i> {{__('form.orderDetails')}}</a>
- <!-- <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> -->
- <!-- <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> -->
- {{-- @if($item->approve != null)
- <a href="#"
- style="margin-left: 20px;color:black;">{{__('form.stockSet')}}</a>
- @endif--}}
- </td>
- </tr>
- @endforeach
- </tbody>
- </table>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!--end data table -->
- @endsection
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement