@props(['method']) @once @endonce @php $symbol = $method->currency_symbol; $formatCharge = function ($amount, $type) use ($symbol): string { $isPercent = $type && (is_object($type) ? $type->isPercent() : $type === 'percent'); return $isPercent ? (($amount ?? 0).'%') : ($symbol.($amount ?? 0)); }; $agentSet = $method->agent_charge !== null; $agentAmount = $agentSet ? $method->agent_charge : $method->user_charge; $agentType = $agentSet ? $method->agent_charge_type : $method->user_charge_type; $agentTitle = $agentSet ? __('Agent') : __('Agent (inherits user rate)'); @endphp