Consolidate service resources into a top level services/ directory

This commit is contained in:
Deon George
2022-07-29 17:45:17 +10:00
parent 7f6df8d032
commit 97f5c84f23
36 changed files with 66 additions and 64 deletions

View File

@@ -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
*