1777384759a:4:{s:5:"stats";a:8:{s:18:"today_transactions";i:8;s:13:"today_revenue";d:93002;s:12:"today_profit";d:48076;s:18:"month_transactions";i:129;s:13:"month_revenue";d:2219903;s:12:"month_profit";d:1424819;s:14:"total_products";i:398;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:3:"135";s:9:"total_qty";s:2:"17";s:13:"total_revenue";s:8:"85000.00";}s:11:" * original";a:3:{s:10:"product_id";s:3:"135";s:9:"total_qty";s:2:"17";s:13:"total_revenue";s:8:"85000.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:"135";s:11:"category_id";s:1:"1";s:4:"name";s:11:"TOLAK ANGIN";s:4:"slug";s:18:"tolak-angin-2iMc7K";s:7:"barcode";s:13:"8998898101409";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:4:"0.00";s:11:"description";N;s:14:"purchase_price";s:4:"5000";s:13:"selling_price";s:4:"5000";s:5:"stock";s:1:"9";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:6:"sachet";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-04-23 18:52:05";}s:11:" * original";a:18:{s:2:"id";s:3:"135";s:11:"category_id";s:1:"1";s:4:"name";s:11:"TOLAK ANGIN";s:4:"slug";s:18:"tolak-angin-2iMc7K";s:7:"barcode";s:13:"8998898101409";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:4:"0.00";s:11:"description";N;s:14:"purchase_price";s:4:"5000";s:13:"selling_price";s:4:"5000";s:5:"stock";s:1:"9";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:6:"sachet";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-04-23 18:52:05";}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:"1";s:4:"name";s:16:"Obat Flu & Batuk";s:4:"slug";s:14:"obat-flu-batuk";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:"1";s:4:"name";s:16:"Obat Flu & Batuk";s:4:"slug";s:14:"obat-flu-batuk";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: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:2:"74";s:9:"total_qty";s:2:"16";s:13:"total_revenue";s:8:"16000.00";}s:11:" * original";a:3:{s:10:"product_id";s:2:"74";s:9:"total_qty";s:2:"16";s:13:"total_revenue";s:8:"16000.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:"74";s:11:"category_id";s:1:"5";s:4:"name";s:13:"MADU RASA SCT";s:4:"slug";s:20:"madu-rasa-sct-76zUxO";s:7:"barcode";s:13:"8993014731317";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:5:"20.05";s:11:"description";N;s:14:"purchase_price";s:3:"833";s:13:"selling_price";s:4:"1000";s:5:"stock";s:1:"7";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:6:"sachet";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:46";s:10:"updated_at";s:19:"2026-04-24 18:41:39";}s:11:" * original";a:18:{s:2:"id";s:2:"74";s:11:"category_id";s:1:"5";s:4:"name";s:13:"MADU RASA SCT";s:4:"slug";s:20:"madu-rasa-sct-76zUxO";s:7:"barcode";s:13:"8993014731317";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";s:5:"20.05";s:11:"description";N;s:14:"purchase_price";s:3:"833";s:13:"selling_price";s:4:"1000";s:5:"stock";s:1:"7";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:6:"sachet";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-03-09 10:51:46";s:10:"updated_at";s:19:"2026-04-24 18:41:39";}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:"5";s:4:"name";s:18:"Vitamin & Suplemen";s:4:"slug";s:16:"vitamin-suplemen";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:"5";s:4:"name";s:18:"Vitamin & Suplemen";s:4:"slug";s:16:"vitamin-suplemen";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: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:3:"302";s:9:"total_qty";s:2:"14";s:13:"total_revenue";s:8:"70000.00";}s:11:" * original";a:3:{s:10:"product_id";s:3:"302";s:9:"total_qty";s:2:"14";s:13:"total_revenue";s:8:"70000.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:"302";s:11:"category_id";s:1:"2";s:4:"name";s:9:"POLDANMIG";s:4:"slug";s:16:"poldanmig-UHYIPF";s:7:"barcode";s:13:"8993008235043";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";N;s:11:"description";N;s:14:"purchase_price";s:4:"1000";s:13:"selling_price";s:4:"5000";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-04-11 15:16:54";s:10:"updated_at";s:19:"2026-04-13 20:02:16";}s:11:" * original";a:18:{s:2:"id";s:3:"302";s:11:"category_id";s:1:"2";s:4:"name";s:9:"POLDANMIG";s:4:"slug";s:16:"poldanmig-UHYIPF";s:7:"barcode";s:13:"8993008235043";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";N;s:11:"description";N;s:14:"purchase_price";s:4:"1000";s:13:"selling_price";s:4:"5000";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-04-11 15:16:54";s:10:"updated_at";s:19:"2026-04-13 20:02:16";}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:3:"227";s:9:"total_qty";s:2:"11";s:13:"total_revenue";s:8:"10500.00";}s:11:" * original";a:3:{s:10:"product_id";s:3:"227";s:9:"total_qty";s:2:"11";s:13:"total_revenue";s:8:"10500.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:"227";s:11:"category_id";s:2:"11";s:4:"name";s:25:"HANSAPLAST PLESTER TEMPEL";s:4:"slug";s:32:"hansaplast-plester-tempel-fJNvO6";s:7:"barcode";s:13:"8999777026370";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";N;s:11:"description";N;s:14:"purchase_price";s:1:"0";s:13:"selling_price";s:4:"1000";s:5:"stock";s:2:"81";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:3:"pcs";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-04-08 19:04:55";s:10:"updated_at";s:19:"2026-04-27 18:51:06";}s:11:" * original";a:18:{s:2:"id";s:3:"227";s:11:"category_id";s:2:"11";s:4:"name";s:25:"HANSAPLAST PLESTER TEMPEL";s:4:"slug";s:32:"hansaplast-plester-tempel-fJNvO6";s:7:"barcode";s:13:"8999777026370";s:12:"batch_number";N;s:12:"expired_date";N;s:14:"margin_percent";N;s:11:"description";N;s:14:"purchase_price";s:1:"0";s:13:"selling_price";s:4:"1000";s:5:"stock";s:2:"81";s:13:"minimum_stock";s:1:"5";s:4:"unit";s:3:"pcs";s:5:"image";N;s:9:"is_active";s:1:"1";s:10:"created_at";s:19:"2026-04-08 19:04:55";s:10:"updated_at";s:19:"2026-04-27 18:51:06";}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:"11";s:4:"name";s:14:"Alat Kesehatan";s:4:"slug";s:14:"alat-kesehatan";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:2:"11";s:4:"name";s:14:"Alat Kesehatan";s:4:"slug";s:14:"alat-kesehatan";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: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:1:"8";s:9:"total_qty";s:1:"7";s:13:"total_revenue";s:8:"28000.00";}s:11:" * original";a:3:{s:10:"product_id";s:1:"8";s:9:"total_qty";s:1:"7";s:13:"total_revenue";s:8:"28000.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:"67.22";s:11:"description";N;s:14:"purchase_price";s:1:"0";s:13:"selling_price";s:4:"4000";s:5:"stock";s:2:"11";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-04-21 18:59:51";}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:"67.22";s:11:"description";N;s:14:"purchase_price";s:1:"0";s:13:"selling_price";s:4:"4000";s:5:"stock";s:2:"11";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-04-21 18:59:51";}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:"*";}}}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:"22 Apr";s:7:"revenue";d:77500;s:6:"profit";d:50280;}i:1;a:3:{s:4:"date";s:6:"23 Apr";s:7:"revenue";d:74000;s:6:"profit";d:48467;}i:2;a:3:{s:4:"date";s:6:"24 Apr";s:7:"revenue";d:105501;s:6:"profit";d:73213;}i:3;a:3:{s:4:"date";s:6:"25 Apr";s:7:"revenue";d:65000;s:6:"profit";d:51597;}i:4;a:3:{s:4:"date";s:6:"26 Apr";s:7:"revenue";d:42500;s:6:"profit";d:35148;}i:5;a:3:{s:4:"date";s:6:"27 Apr";s:7:"revenue";d:211000;s:6:"profit";d:120338;}i:6;a:3:{s:4:"date";s:6:"28 Apr";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:"Nov 2025";s:7:"revenue";i:0;}i:1;a:2:{s:5:"month";s:8:"Dec 2025";s:7:"revenue";i:0;}i:2;a:2:{s:5:"month";s:8:"Jan 2026";s:7:"revenue";i:0;}i:3;a:2:{s:5:"month";s:8:"Feb 2026";s:7:"revenue";i:0;}i:4;a:2:{s:5:"month";s:8:"Mar 2026";s:7:"revenue";d:12000;}i:5;a:2:{s:5:"month";s:8:"Apr 2026";s:7:"revenue";d:2219903;}}s:28:" * escapeWhenCastingToString";b:0;}}