You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
922 B
PHTML
52 lines
922 B
PHTML
3 months ago
|
<?php
|
||
|
|
||
|
namespace App\Http\Controllers;
|
||
|
|
||
|
use App\Http\Requests\PackingSlipRequest;
|
||
|
use App\Models\Customer;
|
||
|
use App\Models\PackingSlip;
|
||
|
use Illuminate\Http\Request;
|
||
|
|
||
|
class PackingSlipController extends Controller
|
||
|
{
|
||
|
public function index()
|
||
|
{
|
||
|
|
||
|
}
|
||
|
|
||
|
public function create()
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function store(PackingSlipRequest $request)
|
||
|
{
|
||
|
PackingSlip::create($request->validated());
|
||
|
|
||
|
if ($request->get('from_customer'))
|
||
|
{
|
||
|
return redirect()->route('customers.show', [
|
||
|
Customer::find($request->get('customer_id')),
|
||
|
'tab' => 'packing'
|
||
|
]);
|
||
|
}
|
||
|
|
||
|
return redirect()->back(); //todo: change to packing slips page
|
||
|
}
|
||
|
|
||
|
public function show($id)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function edit($id)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function update(Request $request, $id)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
public function destroy($id)
|
||
|
{
|
||
|
}
|
||
|
}
|