I'm only answering to sum up to combine the 2 answers already here
Read Mathias711's answer for available storage loot, available collector loot is always 50%.
"The percentage of Gold and Elixir that can be stolen from mines and collectors is 50% and is capped only by the storage capacity of the resource collector."