|
|
@@ -13,26 +13,26 @@ class CustomerLogsController extends Controller
|
|
|
{
|
|
|
public function __construct()
|
|
|
{
|
|
|
- $this->middleware('auth', ['except' => ['index', 'show']]);
|
|
|
+ $this->middleware('auth');
|
|
|
}
|
|
|
|
|
|
public function index()
|
|
|
{
|
|
|
$customer_logs = CustomerLog::query()->with(['customerLogStatus', 'user', 'customer'])->orderByDesc('updated_at')->paginate();
|
|
|
- return view('customer_logs.index', compact('customer_logs'));
|
|
|
+ return view('customer.customer_logs.index', compact('customer_logs'));
|
|
|
}
|
|
|
|
|
|
public function show($customer_log_id)
|
|
|
{
|
|
|
$customer_log =CustomerLog::query()->with(['customerLogStatus', 'user', 'customer'])->where('id',$customer_log_id)->first();
|
|
|
- return view('customer_logs.show', compact('customer_log'));
|
|
|
+ return view('customer.customer_logs.show', compact('customer_log'));
|
|
|
}
|
|
|
|
|
|
public function create(CustomerLog $customer_log)
|
|
|
{
|
|
|
$customers = Customer::all();
|
|
|
$customerLogStatuses = CustomerLogStatus::all();
|
|
|
- return view('customer_logs.create_and_edit', compact('customer_log', 'customers', 'customerLogStatuses'));
|
|
|
+ return view('customer.customer_logs.create_and_edit', compact('customer_log', 'customers', 'customerLogStatuses'));
|
|
|
}
|
|
|
|
|
|
public function store(Request $request): RedirectResponse
|
|
|
@@ -49,7 +49,7 @@ class CustomerLogsController extends Controller
|
|
|
$this->authorize('update', $customer_log);
|
|
|
$customers = Customer::all();
|
|
|
$customerLogStatuses = CustomerLogStatus::all();
|
|
|
- return view('customer_logs.create_and_edit', compact('customer_log', 'customers', 'customerLogStatuses'));
|
|
|
+ return view('customer.customer_logs.create_and_edit', compact('customer_log', 'customers', 'customerLogStatuses'));
|
|
|
}
|
|
|
|
|
|
public function update(Request $request, CustomerLog $customer_log)
|