1781185682a:4:{s:5:"stats";a:8:{s:18:"today_transactions";i:8;s:13:"today_revenue";d:76000;s:12:"today_profit";d:74700;s:18:"month_transactions";i:66;s:13:"month_revenue";d:915002;s:12:"month_profit";d:595561;s:14:"total_products";i:460;s:11:"total_users";i:3;}s:11:"topProducts";O:39:"Illuminate\Database\Eloquent\Collection":2:{s:8:" * items";a:5:{i:0;O:21:"App\Models\SaleDetail":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:12:"sale_details";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:3:{s:10:"product_id";s:1:"8";s:9:"total_qty";s:2:"12";s:13:"total_revenue";s:8:"60000.00";}s:11:" * original";a:3:{s:10:"product_id";s:1:"8";s:9:"total_qty";s:2:"12";s:13:"total_revenue";s:8:"60000.00";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:7:{s:14:"purchase_price";s:9:"decimal:2";s:13:"selling_price";s:9:"decimal:2";s:16:"discount_percent";s:9:"decimal:2";s:15:"discount_amount";s:9:"decimal:2";s:8:"subtotal";s:9:"decimal:2";s:6:"profit";s:9:"decimal:2";s:13:"unit_quantity";s:7:"integer";}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:1:{s:7:"product";O:18:"App\Models\Product":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:8:"products";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:18:{s:2:"id";s:1:"8";s:11:"category_id";s:2:"16";s:4:"name";s:19:"AMLODIPINE TAB 5 MG";s:4:"slug";s:26:"amlodipine-tab-5-mg-njC6Ij";s:7:"barcode";s:13:"8994805003064";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:5:"89.39";s:11:"description";N;s:14:"purchase_price";s:4:"2640";s:13:"selling_price";s:4:"5000";s:5:"stock";s:2:"17";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:5:"strip";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:43";s:10:"updated_at";s:19:"2026-06-08 20:17:46";}s:11:" * original";a:18:{s:2:"id";s:1:"8";s:11:"category_id";s:2:"16";s:4:"name";s:19:"AMLODIPINE TAB 5 MG";s:4:"slug";s:26:"amlodipine-tab-5-mg-njC6Ij";s:7:"barcode";s:13:"8994805003064";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:5:"89.39";s:11:"description";N;s:14:"purchase_price";s:4:"2640";s:13:"selling_price";s:4:"5000";s:5:"stock";s:2:"17";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:5:"strip";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:43";s:10:"updated_at";s:19:"2026-06-08 20:17:46";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:5:{s:14:"purchase_price";s:9:"decimal:2";s:13:"selling_price";s:9:"decimal:2";s:14:"margin_percent";s:9:"decimal:2";s:9:"is_active";s:7:"boolean";s:12:"expired_date";s:4:"date";}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:1:{s:8:"category";O:19:"App\Models\Category":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:10:"categories";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:6:{s:2:"id";s:2:"16";s:4:"name";s:14:"Antihipertensi";s:4:"slug";s:14:"antihipertensi";s:11:"description";s:12:"darah tinggi";s:10:"created_at";s:19:"2026-04-07 12:26:20";s:10:"updated_at";s:19:"2026-04-08 17:06:48";}s:11:" * original";a:6:{s:2:"id";s:2:"16";s:4:"name";s:14:"Antihipertensi";s:4:"slug";s:14:"antihipertensi";s:11:"description";s:12:"darah tinggi";s:10:"created_at";s:19:"2026-04-07 12:26:20";s:10:"updated_at";s:19:"2026-04-08 17:06:48";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:0:{}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:0:{}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:3:{i:0;s:4:"name";i:1;s:4:"slug";i:2;s:11:"description";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:15:{i:0;s:11:"category_id";i:1;s:4:"name";i:2;s:4:"slug";i:3;s:7:"barcode";i:4;s:12:"batch_number";i:5;s:12:"expired_date";i:6;s:11:"description";i:7;s:14:"purchase_price";i:8;s:14:"margin_percent";i:9;s:13:"selling_price";i:10;s:5:"stock";i:11;s:13:"minimum_stock";i:12;s:4:"unit";i:13;s:5:"image";i:14;s:9:"is_active";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:11:{i:0;s:7:"sale_id";i:1;s:10:"product_id";i:2;s:8:"quantity";i:3;s:14:"purchase_price";i:4;s:13:"selling_price";i:5;s:16:"discount_percent";i:6;s:15:"discount_amount";i:7;s:8:"subtotal";i:8;s:6:"profit";i:9;s:10:"unit_label";i:10;s:13:"unit_quantity";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}i:1;O:21:"App\Models\SaleDetail":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:12:"sale_details";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:3:{s:10:"product_id";s:1:"7";s:9:"total_qty";s:1:"7";s:13:"total_revenue";s:8:"49000.00";}s:11:" * original";a:3:{s:10:"product_id";s:1:"7";s:9:"total_qty";s:1:"7";s:13:"total_revenue";s:8:"49000.00";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:7:{s:14:"purchase_price";s:9:"decimal:2";s:13:"selling_price";s:9:"decimal:2";s:16:"discount_percent";s:9:"decimal:2";s:15:"discount_amount";s:9:"decimal:2";s:8:"subtotal";s:9:"decimal:2";s:6:"profit";s:9:"decimal:2";s:13:"unit_quantity";s:7:"integer";}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:1:{s:7:"product";O:18:"App\Models\Product":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:8:"products";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:18:{s:2:"id";s:1:"7";s:11:"category_id";s:2:"16";s:4:"name";s:20:"AMLODIPINE TAB 10 MG";s:4:"slug";s:27:"amlodipine-tab-10-mg-8PfiCm";s:7:"barcode";s:13:"8994805003163";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:5:"46.90";s:11:"description";N;s:14:"purchase_price";s:4:"4765";s:13:"selling_price";s:4:"7000";s:5:"stock";s:2:"17";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:5:"strip";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:43";s:10:"updated_at";s:19:"2026-06-10 19:07:36";}s:11:" * original";a:18:{s:2:"id";s:1:"7";s:11:"category_id";s:2:"16";s:4:"name";s:20:"AMLODIPINE TAB 10 MG";s:4:"slug";s:27:"amlodipine-tab-10-mg-8PfiCm";s:7:"barcode";s:13:"8994805003163";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:5:"46.90";s:11:"description";N;s:14:"purchase_price";s:4:"4765";s:13:"selling_price";s:4:"7000";s:5:"stock";s:2:"17";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:5:"strip";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:43";s:10:"updated_at";s:19:"2026-06-10 19:07:36";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:5:{s:14:"purchase_price";s:9:"decimal:2";s:13:"selling_price";s:9:"decimal:2";s:14:"margin_percent";s:9:"decimal:2";s:9:"is_active";s:7:"boolean";s:12:"expired_date";s:4:"date";}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:1:{s:8:"category";r:117;}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:15:{i:0;s:11:"category_id";i:1;s:4:"name";i:2;s:4:"slug";i:3;s:7:"barcode";i:4;s:12:"batch_number";i:5;s:12:"expired_date";i:6;s:11:"description";i:7;s:14:"purchase_price";i:8;s:14:"margin_percent";i:9;s:13:"selling_price";i:10;s:5:"stock";i:11;s:13:"minimum_stock";i:12;s:4:"unit";i:13;s:5:"image";i:14;s:9:"is_active";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:11:{i:0;s:7:"sale_id";i:1;s:10:"product_id";i:2;s:8:"quantity";i:3;s:14:"purchase_price";i:4;s:13:"selling_price";i:5;s:16:"discount_percent";i:6;s:15:"discount_amount";i:7;s:8:"subtotal";i:8;s:6:"profit";i:9;s:10:"unit_label";i:10;s:13:"unit_quantity";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}i:2;O:21:"App\Models\SaleDetail":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:12:"sale_details";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:3:{s:10:"product_id";s:2:"96";s:9:"total_qty";s:1:"5";s:13:"total_revenue";s:8:"26000.00";}s:11:" * original";a:3:{s:10:"product_id";s:2:"96";s:9:"total_qty";s:1:"5";s:13:"total_revenue";s:8:"26000.00";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:7:{s:14:"purchase_price";s:9:"decimal:2";s:13:"selling_price";s:9:"decimal:2";s:16:"discount_percent";s:9:"decimal:2";s:15:"discount_amount";s:9:"decimal:2";s:8:"subtotal";s:9:"decimal:2";s:6:"profit";s:9:"decimal:2";s:13:"unit_quantity";s:7:"integer";}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:1:{s:7:"product";O:18:"App\Models\Product":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:8:"products";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:18:{s:2:"id";s:2:"96";s:11:"category_id";s:1:"2";s:4:"name";s:15:"PARACETAMOL TAB";s:4:"slug";s:22:"paracetamol-tab-tiKrVP";s:7:"barcode";N;s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:6:"203.03";s:11:"description";N;s:14:"purchase_price";s:1:"0";s:13:"selling_price";s:4:"6000";s:5:"stock";s:1:"7";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:5:"strip";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:47";s:10:"updated_at";s:19:"2026-06-08 18:53:22";}s:11:" * original";a:18:{s:2:"id";s:2:"96";s:11:"category_id";s:1:"2";s:4:"name";s:15:"PARACETAMOL TAB";s:4:"slug";s:22:"paracetamol-tab-tiKrVP";s:7:"barcode";N;s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:6:"203.03";s:11:"description";N;s:14:"purchase_price";s:1:"0";s:13:"selling_price";s:4:"6000";s:5:"stock";s:1:"7";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:5:"strip";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:47";s:10:"updated_at";s:19:"2026-06-08 18:53:22";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:5:{s:14:"purchase_price";s:9:"decimal:2";s:13:"selling_price";s:9:"decimal:2";s:14:"margin_percent";s:9:"decimal:2";s:9:"is_active";s:7:"boolean";s:12:"expired_date";s:4:"date";}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:1:{s:8:"category";O:19:"App\Models\Category":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:10:"categories";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:6:{s:2:"id";s:1:"2";s:4:"name";s:18:"Obat Demam & Nyeri";s:4:"slug";s:16:"obat-demam-nyeri";s:11:"description";N;s:10:"created_at";s:19:"2026-03-09 10:51:42";s:10:"updated_at";s:19:"2026-03-09 10:51:42";}s:11:" * original";a:6:{s:2:"id";s:1:"2";s:4:"name";s:18:"Obat Demam & Nyeri";s:4:"slug";s:16:"obat-demam-nyeri";s:11:"description";N;s:10:"created_at";s:19:"2026-03-09 10:51:42";s:10:"updated_at";s:19:"2026-03-09 10:51:42";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:0:{}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:0:{}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:3:{i:0;s:4:"name";i:1;s:4:"slug";i:2;s:11:"description";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:15:{i:0;s:11:"category_id";i:1;s:4:"name";i:2;s:4:"slug";i:3;s:7:"barcode";i:4;s:12:"batch_number";i:5;s:12:"expired_date";i:6;s:11:"description";i:7;s:14:"purchase_price";i:8;s:14:"margin_percent";i:9;s:13:"selling_price";i:10;s:5:"stock";i:11;s:13:"minimum_stock";i:12;s:4:"unit";i:13;s:5:"image";i:14;s:9:"is_active";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:11:{i:0;s:7:"sale_id";i:1;s:10:"product_id";i:2;s:8:"quantity";i:3;s:14:"purchase_price";i:4;s:13:"selling_price";i:5;s:16:"discount_percent";i:6;s:15:"discount_amount";i:7;s:8:"subtotal";i:8;s:6:"profit";i:9;s:10:"unit_label";i:10;s:13:"unit_quantity";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}i:3;O:21:"App\Models\SaleDetail":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:12:"sale_details";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:3:{s:10:"product_id";s:1:"6";s:9:"total_qty";s:1:"4";s:13:"total_revenue";s:8:"40000.00";}s:11:" * original";a:3:{s:10:"product_id";s:1:"6";s:9:"total_qty";s:1:"4";s:13:"total_revenue";s:8:"40000.00";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:7:{s:14:"purchase_price";s:9:"decimal:2";s:13:"selling_price";s:9:"decimal:2";s:16:"discount_percent";s:9:"decimal:2";s:15:"discount_amount";s:9:"decimal:2";s:8:"subtotal";s:9:"decimal:2";s:6:"profit";s:9:"decimal:2";s:13:"unit_quantity";s:7:"integer";}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:1:{s:7:"product";O:18:"App\Models\Product":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:8:"products";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:18:{s:2:"id";s:1:"6";s:11:"category_id";s:2:"18";s:4:"name";s:10:"ALPARA TAB";s:4:"slug";s:17:"alpara-tab-VRJMrn";s:7:"barcode";N;s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:5:"57.90";s:11:"description";N;s:14:"purchase_price";s:1:"0";s:13:"selling_price";s:5:"10000";s:5:"stock";s:1:"1";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:5:"strip";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:43";s:10:"updated_at";s:19:"2026-06-11 10:40:49";}s:11:" * original";a:18:{s:2:"id";s:1:"6";s:11:"category_id";s:2:"18";s:4:"name";s:10:"ALPARA TAB";s:4:"slug";s:17:"alpara-tab-VRJMrn";s:7:"barcode";N;s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:5:"57.90";s:11:"description";N;s:14:"purchase_price";s:1:"0";s:13:"selling_price";s:5:"10000";s:5:"stock";s:1:"1";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:5:"strip";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:43";s:10:"updated_at";s:19:"2026-06-11 10:40:49";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:5:{s:14:"purchase_price";s:9:"decimal:2";s:13:"selling_price";s:9:"decimal:2";s:14:"margin_percent";s:9:"decimal:2";s:9:"is_active";s:7:"boolean";s:12:"expired_date";s:4:"date";}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:1:{s:8:"category";O:19:"App\Models\Category":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:10:"categories";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:6:{s:2:"id";s:2:"18";s:4:"name";s:25:"Obat Demam, Batuk dan Flu";s:4:"slug";s:24:"obat-demam-batuk-dan-flu";s:11:"description";N;s:10:"created_at";s:19:"2026-04-08 13:09:57";s:10:"updated_at";s:19:"2026-04-08 13:10:18";}s:11:" * original";a:6:{s:2:"id";s:2:"18";s:4:"name";s:25:"Obat Demam, Batuk dan Flu";s:4:"slug";s:24:"obat-demam-batuk-dan-flu";s:11:"description";N;s:10:"created_at";s:19:"2026-04-08 13:09:57";s:10:"updated_at";s:19:"2026-04-08 13:10:18";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:0:{}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:0:{}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:3:{i:0;s:4:"name";i:1;s:4:"slug";i:2;s:11:"description";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:15:{i:0;s:11:"category_id";i:1;s:4:"name";i:2;s:4:"slug";i:3;s:7:"barcode";i:4;s:12:"batch_number";i:5;s:12:"expired_date";i:6;s:11:"description";i:7;s:14:"purchase_price";i:8;s:14:"margin_percent";i:9;s:13:"selling_price";i:10;s:5:"stock";i:11;s:13:"minimum_stock";i:12;s:4:"unit";i:13;s:5:"image";i:14;s:9:"is_active";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:11:{i:0;s:7:"sale_id";i:1;s:10:"product_id";i:2;s:8:"quantity";i:3;s:14:"purchase_price";i:4;s:13:"selling_price";i:5;s:16:"discount_percent";i:6;s:15:"discount_amount";i:7;s:8:"subtotal";i:8;s:6:"profit";i:9;s:10:"unit_label";i:10;s:13:"unit_quantity";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}i:4;O:21:"App\Models\SaleDetail":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:12:"sale_details";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:3:{s:10:"product_id";s:3:"114";s:9:"total_qty";s:1:"4";s:13:"total_revenue";s:8:"36000.00";}s:11:" * original";a:3:{s:10:"product_id";s:3:"114";s:9:"total_qty";s:1:"4";s:13:"total_revenue";s:8:"36000.00";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:7:{s:14:"purchase_price";s:9:"decimal:2";s:13:"selling_price";s:9:"decimal:2";s:16:"discount_percent";s:9:"decimal:2";s:15:"discount_amount";s:9:"decimal:2";s:8:"subtotal";s:9:"decimal:2";s:6:"profit";s:9:"decimal:2";s:13:"unit_quantity";s:7:"integer";}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:1:{s:7:"product";O:18:"App\Models\Product":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:8:"products";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:18:{s:2:"id";s:3:"114";s:11:"category_id";s:1:"3";s:4:"name";s:11:"PROMAGH TAB";s:4:"slug";s:18:"promagh-tab-H4nvih";s:7:"barcode";s:13:"8992858665000";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:5:"10.21";s:11:"description";N;s:14:"purchase_price";s:4:"8166";s:13:"selling_price";s:4:"9000";s:5:"stock";s:1:"6";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:7:"blister";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:49";s:10:"updated_at";s:19:"2026-06-09 19:16:55";}s:11:" * original";a:18:{s:2:"id";s:3:"114";s:11:"category_id";s:1:"3";s:4:"name";s:11:"PROMAGH TAB";s:4:"slug";s:18:"promagh-tab-H4nvih";s:7:"barcode";s:13:"8992858665000";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:5:"10.21";s:11:"description";N;s:14:"purchase_price";s:4:"8166";s:13:"selling_price";s:4:"9000";s:5:"stock";s:1:"6";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:7:"blister";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:49";s:10:"updated_at";s:19:"2026-06-09 19:16:55";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:5:{s:14:"purchase_price";s:9:"decimal:2";s:13:"selling_price";s:9:"decimal:2";s:14:"margin_percent";s:9:"decimal:2";s:9:"is_active";s:7:"boolean";s:12:"expired_date";s:4:"date";}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:1:{s:8:"category";O:19:"App\Models\Category":33:{s:13:" * connection";s:5:"mysql";s:8:" * table";s:10:"categories";s:13:" * primaryKey";s:2:"id";s:10:" * keyType";s:3:"int";s:12:"incrementing";b:1;s:7:" * with";a:0:{}s:12:" * withCount";a:0:{}s:19:"preventsLazyLoading";b:0;s:10:" * perPage";i:15;s:6:"exists";b:1;s:18:"wasRecentlyCreated";b:0;s:28:" * escapeWhenCastingToString";b:0;s:13:" * attributes";a:6:{s:2:"id";s:1:"3";s:4:"name";s:15:"Obat Pencernaan";s:4:"slug";s:15:"obat-pencernaan";s:11:"description";N;s:10:"created_at";s:19:"2026-03-09 10:51:42";s:10:"updated_at";s:19:"2026-03-09 10:51:42";}s:11:" * original";a:6:{s:2:"id";s:1:"3";s:4:"name";s:15:"Obat Pencernaan";s:4:"slug";s:15:"obat-pencernaan";s:11:"description";N;s:10:"created_at";s:19:"2026-03-09 10:51:42";s:10:"updated_at";s:19:"2026-03-09 10:51:42";}s:10:" * changes";a:0:{}s:11:" * previous";a:0:{}s:8:" * casts";a:0:{}s:17:" * classCastCache";a:0:{}s:21:" * attributeCastCache";a:0:{}s:13:" * dateFormat";N;s:10:" * appends";a:0:{}s:19:" * dispatchesEvents";a:0:{}s:14:" * observables";a:0:{}s:12:" * relations";a:0:{}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:3:{i:0;s:4:"name";i:1;s:4:"slug";i:2;s:11:"description";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:15:{i:0;s:11:"category_id";i:1;s:4:"name";i:2;s:4:"slug";i:3;s:7:"barcode";i:4;s:12:"batch_number";i:5;s:12:"expired_date";i:6;s:11:"description";i:7;s:14:"purchase_price";i:8;s:14:"margin_percent";i:9;s:13:"selling_price";i:10;s:5:"stock";i:11;s:13:"minimum_stock";i:12;s:4:"unit";i:13;s:5:"image";i:14;s:9:"is_active";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}}s:10:" * touches";a:0:{}s:27:" * relationAutoloadCallback";N;s:26:" * relationAutoloadContext";N;s:10:"timestamps";b:1;s:13:"usesUniqueIds";b:0;s:9:" * hidden";a:0:{}s:10:" * visible";a:0:{}s:11:" * fillable";a:11:{i:0;s:7:"sale_id";i:1;s:10:"product_id";i:2;s:8:"quantity";i:3;s:14:"purchase_price";i:4;s:13:"selling_price";i:5;s:16:"discount_percent";i:6;s:15:"discount_amount";i:7;s:8:"subtotal";i:8;s:6:"profit";i:9;s:10:"unit_label";i:10;s:13:"unit_quantity";}s:10:" * guarded";a:1:{i:0;s:1:"*";}}}s:28:" * escapeWhenCastingToString";b:0;}s:10:"weeklyData";O:29:"Illuminate\Support\Collection":2:{s:8:" * items";a:7:{i:0;a:3:{s:4:"date";s:6:"05 Jun";s:7:"revenue";d:38000;s:6:"profit";d:21367;}i:1;a:3:{s:4:"date";s:6:"06 Jun";s:7:"revenue";d:41000;s:6:"profit";d:30470;}i:2;a:3:{s:4:"date";s:6:"07 Jun";s:7:"revenue";d:141000;s:6:"profit";d:100233;}i:3;a:3:{s:4:"date";s:6:"08 Jun";s:7:"revenue";d:213500;s:6:"profit";d:119494;}i:4;a:3:{s:4:"date";s:6:"09 Jun";s:7:"revenue";d:42000;s:6:"profit";d:21913;}i:5;a:3:{s:4:"date";s:6:"10 Jun";s:7:"revenue";d:90501;s:6:"profit";d:28774;}i:6;a:3:{s:4:"date";s:6:"11 Jun";s:7:"revenue";i:0;s:6:"profit";i:0;}}s:28:" * escapeWhenCastingToString";b:0;}s:11:"monthlyData";O:29:"Illuminate\Support\Collection":2:{s:8:" * items";a:6:{i:0;a:2:{s:5:"month";s:8:"Jan 2026";s:7:"revenue";i:0;}i:1;a:2:{s:5:"month";s:8:"Feb 2026";s:7:"revenue";i:0;}i:2;a:2:{s:5:"month";s:8:"Mar 2026";s:7:"revenue";d:12000;}i:3;a:2:{s:5:"month";s:8:"Apr 2026";s:7:"revenue";d:2342903;}i:4;a:2:{s:5:"month";s:8:"May 2026";s:7:"revenue";d:1826005;}i:5;a:2:{s:5:"month";s:8:"Jun 2026";s:7:"revenue";d:915002;}}s:28:" * escapeWhenCastingToString";b:0;}}