Consolidate service resources into a top level services/ directory
This commit is contained in:
@@ -4,7 +4,6 @@ namespace App\Http\Controllers;
|
||||
|
||||
use Clarkeash\Doorman\Exceptions\{DoormanException,ExpiredInviteCode};
|
||||
use Clarkeash\Doorman\Facades\Doorman;
|
||||
use Illuminate\Contracts\View\Factory;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
use Illuminate\View\View;
|
||||
@@ -24,7 +23,8 @@ class HomeController extends Controller
|
||||
/**
|
||||
* Logged in users home page
|
||||
*
|
||||
* @return Factory|View
|
||||
* @param User $o
|
||||
* @return View
|
||||
*/
|
||||
public function home(User $o): View
|
||||
{
|
||||
@@ -33,7 +33,7 @@ class HomeController extends Controller
|
||||
|
||||
$o->load(['services.invoice_items','services.type']);
|
||||
|
||||
return View('u.home',['o'=>$o]);
|
||||
return View('home',['o'=>$o]);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -62,22 +62,6 @@ class HomeController extends Controller
|
||||
return $this->invoice($o);
|
||||
}
|
||||
|
||||
/**
|
||||
* Return details on the users service
|
||||
*
|
||||
* @param Service $o
|
||||
* @return View
|
||||
*/
|
||||
public function service(Service $o): View
|
||||
{
|
||||
$breadcrumb = collect();
|
||||
$breadcrumb->put($o->account->user->full_name,url('u/home',$o->account->user_id));
|
||||
|
||||
return View('u.service.home')
|
||||
->with('breadcrumb',$breadcrumb)
|
||||
->with('o',$o);
|
||||
}
|
||||
|
||||
/**
|
||||
* Progress the order to the next stage
|
||||
*
|
||||
|
Reference in New Issue
Block a user