|
@@ -838,11 +838,22 @@ class PracticeManagementController extends Controller
|
|
$supplyOrders = SupplyOrder::where('signed_by_pro_id', $this->performer()->pro->id)
|
|
$supplyOrders = SupplyOrder::where('signed_by_pro_id', $this->performer()->pro->id)
|
|
->where('is_cancelled', true)
|
|
->where('is_cancelled', true)
|
|
->where('is_cancellation_acknowledged', false)
|
|
->where('is_cancellation_acknowledged', false)
|
|
- ->orderBy('created_at', 'desc')
|
|
|
|
|
|
+ ->orderBy('created_at', 'desc')
|
|
->paginate();
|
|
->paginate();
|
|
return view('app.practice-management.supply-orders-cancelled-but-unacknowledged', compact('supplyOrders'));
|
|
return view('app.practice-management.supply-orders-cancelled-but-unacknowledged', compact('supplyOrders'));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public function supplyOrdersUnsigned(Request $request)
|
|
|
|
+ {
|
|
|
|
+ $supplyOrders = SupplyOrder
|
|
|
|
+ ::where('is_cancelled', false)
|
|
|
|
+ ->where('is_signed_by_pro', false)
|
|
|
|
+ ->whereRaw('created_by_session_id IN (SELECT id FROM app_session WHERE pro_id = ?)', [$this->performer()->pro->id])
|
|
|
|
+ ->orderBy('created_at', 'desc')
|
|
|
|
+ ->paginate();
|
|
|
|
+ return view('app.practice-management.supply-orders-unsigned', compact('supplyOrders'));
|
|
|
|
+ }
|
|
|
|
+
|
|
private function getSupplyOrderCounts()
|
|
private function getSupplyOrderCounts()
|
|
{
|
|
{
|
|
return [
|
|
return [
|