Build the stuff for incoming invoices.
This commit is contained in:
41
app/Http/Controllers/IncomingController.php
Normal file
41
app/Http/Controllers/IncomingController.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Models\Incoming;
|
||||
use Illuminate\Contracts\View\View;
|
||||
|
||||
class IncomingController extends Controller
|
||||
{
|
||||
/**
|
||||
* Display a listing of the resource.
|
||||
*/
|
||||
public function index(): View
|
||||
{
|
||||
return view('incoming.index');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for creating a new resource.
|
||||
*/
|
||||
public function create(): View
|
||||
{
|
||||
return view('incoming.create');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for uploading a new resource.
|
||||
*/
|
||||
public function upload(): View
|
||||
{
|
||||
return view('incoming.upload');
|
||||
}
|
||||
|
||||
/**
|
||||
* Show the form for editing the specified resource.
|
||||
*/
|
||||
public function edit(Incoming $incoming): View
|
||||
{
|
||||
return view('incoming.edit', ['incoming' => $incoming, 'supplier' => $incoming->supplier, 'items' => $incoming->items, 'taxes' => $incoming->taxes]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user