Recipes

Beef & Greens

<?php
$recipes 
=
array (
  
=> 
  array (
    
'id' => 225,
    
'recipe' => 'Beef &#038; Greens',
    
'name' => 'Base Recipe',
    
'profit_type' => 'Percentage',
    
'profit_amount' => 121.0,
    
'totals' => 
    array (
      
'weight' => 6.12,
      
'cost' => 10.933689966832503,
      
'price' => 10.933689966832503,
      
'calories' => 5981.4400000000005,
      
'protein' => 
      array (
        
'calories' => 1413.9199999999998,
        
'grams' => 353.47999999999996,
        
'percent' => 24.0,
      ),
      
'carbs' => 
      array (
        
'calories' => 1850.92,
        
'grams' => 462.73,
        
'percent' => 31.0,
      ),
      
'fat' => 
      array (
        
'calories' => 2716.6,
        
'grams' => 301.84444444444443,
        
'percent' => 45.0,
      ),
    ),
    
'price' => 
    array (
      
'type' => 'Percentage',
      
'amount' => '121%',
      
'cost' => 10.933689966832503,
      
'price' => 24.16,
    ),
    
'ingredients' => 
    array (
      
=> 
      array (
        
'ingredient' => 'Ground Beef (80/20)',
        
'post_id' => 135,
        
'weight' => 
        array (
          
'amount' => 1.5,
          
'unit' => 'Lbs',
          
'pounds' => 1.5,
        ),
        
'unit_cost' => 5.22,
        
'type' => 'dry',
        
'macros' => 
        array (
          
'protein' => 
          array (
            
'calories' => 844.8000000000001,
            
'grams' => 211.20000000000002,
          ),
          
'carbs' => 
          array (
            
'calories' => 0.0,
            
'grams' => 0.0,
          ),
          
'fat' => 
          array (
            
'calories' => 1900.8,
            
'grams' => 211.2,
          ),
        ),
      ),
      
=> 
      array (
        
'ingredient' => 'Sweet Potato',
        
'post_id' => 189,
        
'weight' => 
        array (
          
'amount' => '0.50',
          
'unit' => 'Lbs',
          
'pounds' => 0.5,
        ),
        
'unit_cost' => 0.367375,
        
'type' => 'dry',
        
'macros' => 
        array (
          
'protein' => 
          array (
            
'calories' => 14.000000000000002,
            
'grams' => 3.5000000000000004,
          ),
          
'carbs' => 
          array (
            
'calories' => 186.0,
            
'grams' => 46.5,
          ),
          
'fat' => 
          array (
            
'calories' => 2.0,
            
'grams' => 0.2222222222222222,
          ),
        ),
      ),
      
=> 
      array (
        
'ingredient' => 'Spinach',
        
'post_id' => 187,
        
'weight' => 
        array (
          
'amount' => '0.25',
          
'unit' => 'Lbs',
          
'pounds' => 0.25,
        ),
        
'unit_cost' => 0.5431944444444444,
        
'type' => 'dry',
        
'macros' => 
        array (
          
'protein' => 
          array (
            
'calories' => 16.8,
            
'grams' => 4.2,
          ),
          
'carbs' => 
          array (
            
'calories' => 3.9200000000000004,
            
'grams' => 0.9800000000000001,
          ),
          
'fat' => 
          array (
            
'calories' => 8.12,
            
'grams' => 0.9022222222222221,
          ),
        ),
      ),
      
=> 
      array (
        
'ingredient' => 'Peas',
        
'post_id' => 185,
        
'weight' => 
        array (
          
'amount' => '0.50',
          
'unit' => 'Lbs',
          
'pounds' => 0.5,
        ),
        
'unit_cost' => 0.5980000000000001,
        
'type' => 'dry',
        
'macros' => 
        array (
          
'protein' => 
          array (
            
'calories' => 53.2,
            
'grams' => 13.3,
          ),
          
'carbs' => 
          array (
            
'calories' => 212.8,
            
'grams' => 53.2,
          ),
          
'fat' => 
          array (
            
'calories' => 16.8,
            
'grams' => 1.8666666666666667,
          ),
        ),
      ),
      
=> 
      array (
        
'ingredient' => 'Carrots',
        
'post_id' => 186,
        
'weight' => 
        array (
          
'amount' => '0.25',
          
'unit' => 'Lbs',
          
'pounds' => 0.25,
        ),
        
'unit_cost' => 0.29900000000000004,
        
'type' => 'dry',
        
'macros' => 
        array (
          
'protein' => 
          array (
            
'calories' => 5.0,
            
'grams' => 1.25,
          ),
          
'carbs' => 
          array (
            
'calories' => 95.0,
            
'grams' => 23.75,
          ),
          
'fat' => 
          array (
            
'calories' => 1.0,
            
'grams' => 0.1111111111111111,
          ),
        ),
      ),
      
=> 
      array (
        
'ingredient' => 'Brown Rice',
        
'post_id' => 182,
        
'weight' => 
        array (
          
'amount' => '0.75',
          
'unit' => 'Lbs',
          
'pounds' => 0.75,
        ),
        
'unit_cost' => 0.48,
        
'type' => 'dry',
        
'macros' => 
        array (
          
'protein' => 
          array (
            
'calories' => 30.72,
            
'grams' => 7.68,
          ),
          
'carbs' => 
          array (
            
'calories' => 326.4,
            
'grams' => 81.6,
          ),
          
'fat' => 
          array (
            
'calories' => 26.880000000000003,
            
'grams' => 2.986666666666667,
          ),
        ),
      ),
      
=> 
      array (
        
'ingredient' => 'Olive Oil',
        
'post_id' => 143,
        
'weight' => 
        array (
          
'amount' => 2.0,
          
'unit' => 'Fluid Oz',
          
'pounds' => 0.12,
        ),
        
'unit_cost' => 1.2208955223880598,
        
'type' => 'wet',
        
'macros' => 
        array (
          
'protein' => 
          array (
            
'calories' => 0,
            
'grams' => 0.0,
          ),
          
'carbs' => 
          array (
            
'calories' => 0,
            
'grams' => 0.0,
          ),
          
'fat' => 
          array (
            
'calories' => 500,
            
'grams' => 55.55555555555556,
          ),
        ),
      ),
      
=> 
      array (
        
'ingredient' => 'Lentils',
        
'post_id' => 664,
        
'weight' => 
        array (
          
'amount' => 1.0,
          
'unit' => 'Lbs',
          
'pounds' => 1.0,
        ),
        
'unit_cost' => 0.9752,
        
'type' => 'dry',
        
'macros' => 
        array (
          
'protein' => 
          array (
            
'calories' => 240.0,
            
'grams' => 60.0,
          ),
          
'carbs' => 
          array (
            
'calories' => 560.0,
            
'grams' => 140.0,
          ),
          
'fat' => 
          array (
            
'calories' => 48.0,
            
'grams' => 5.333333333333333,
          ),
        ),
      ),
      
=> 
      array (
        
'ingredient' => 'Apple',
        
'post_id' => 190,
        
'weight' => 
        array (
          
'amount' => '0.25',
          
'unit' => 'Lbs',
          
'pounds' => 0.25,
        ),
        
'unit_cost' => 0.381625,
        
'type' => 'dry',
        
'macros' => 
        array (
          
'protein' => 
          array (
            
'calories' => 0.6,
            
'grams' => 0.15,
          ),
          
'carbs' => 
          array (
            
'calories' => 56.4,
            
'grams' => 14.1,
          ),
          
'fat' => 
          array (
            
'calories' => 4.2,
            
'grams' => 0.4666666666666667,
          ),
        ),
      ),
      
=> 
      array (
        
'ingredient' => 'Chickpeas',
        
'post_id' => 660,
        
'weight' => 
        array (
          
'amount' => 1.0,
          
'unit' => 'Lbs',
          
'pounds' => 1.0,
        ),
        
'unit_cost' => 0.8484,
        
'type' => 'dry',
        
'macros' => 
        array (
          
'protein' => 
          array (
            
'calories' => 208.79999999999998,
            
'grams' => 52.199999999999996,
          ),
          
'carbs' => 
          array (
            
'calories' => 410.4,
            
'grams' => 102.6,
          ),
          
'fat' => 
          array (
            
'calories' => 208.79999999999998,
            
'grams' => 23.2,
          ),
        ),
      ),
    ),
  ),
);
?>

Base Recipe

Lbs
Cals
Ingredient Amount Cost Protein Carbs Fat Total Cals
Ground Beef (80/20)1.5 Lbs$5.22845 cals (211 grams)0 cals (0 grams)1901 cals (211 grams)2746 cals
Sweet Potato0.5 Lbs$0.3714 cals (4 grams)186 cals (47 grams)2 cals (0 grams)202 cals
Spinach0.25 Lbs$0.5417 cals (4 grams)4 cals (1 grams)8 cals (1 grams)29 cals
Peas0.5 Lbs$0.6053 cals (13 grams)213 cals (53 grams)17 cals (2 grams)283 cals
Carrots0.25 Lbs$0.305 cals (1 grams)95 cals (24 grams)1 cals (0 grams)101 cals
Brown Rice0.75 Lbs$0.4831 cals (8 grams)326 cals (82 grams)27 cals (3 grams)384 cals
Olive Oil2 Fluid Oz$1.220 cals (0 grams)0 cals (0 grams)500 cals (56 grams)500 cals
Lentils1 Lbs$0.98240 cals (60 grams)560 cals (140 grams)48 cals (5 grams)848 cals
Apple0.25 Lbs$0.381 cals (0 grams)56 cals (14 grams)4 cals (0 grams)61 cals
Chickpeas1 Lbs$0.85209 cals (52 grams)410 cals (103 grams)209 cals (23 grams)828 cals
Amounts:6.1 lbs$10.931,414 cals (353 grams)1,851 cals (463 grams)2,717 cals (302 grams)
Macros:24% Protein31% Carb45% Fat
Totals:Price$24.16Calories5,981 cals