/**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     //
     // $orders = Order::all();
     // $orders = Order::latest()->get();
     $orders = Order::latest('created_at')->get();
     return view('orders.index', compact('orders'));
 }
 public function test()
 {
     $order = Order::latest()->first();
     Paysera::makePayment(['order_id' => $order->id, 'amount' => $order->amount]);
 }
 /**
  * Display a listing of the resource.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     $orders = $this->orders->latest()->paginate(20);
     return $this->jsonRespond->respondPaginator($this->orderTransformer, $orders);
 }