Beispiel #1
0
 /**
  * Display a listing of all payments by the laboratory.
  *
  * @return Response
  */
 public function index()
 {
     //List all Payments
     $payments = Payment::orderBy('name', 'ASC')->get();
     //Load the view and pass the Payments
     return view('billing.payment.index', compact('payments'));
 }
 /**
  * Tests the update function in the PaymentController
  * @param  void
  * @return void
  */
 public function testDestroy()
 {
     $this->withoutMiddleware();
     $this->call('POST', '/payment', $this->paymentData);
     $paymentStored = Payment::orderBy('id', 'desc')->first();
     $paymentStored->delete($paymentStored->id);
     $this->assertEquals(Payment::all()->count(), 0);
 }
 /**
  * @return \Illuminate\View\View
  */
 public function showAllTransaction()
 {
     $transactions = Payment::orderBy('created_at', 'desc')->paginate(15);
     return view('admin.transactions.index', compact('transactions'));
 }