{{----}} @php $inquilino = $transactions->first()->property->contracts->first()->inquilino; $property = $transactions->first()->property; $payment = $transactions->first()->payments()->first(); $paymentMethod = null; if($payment->payment_method === 'bank_transfer') { $paymentMethod = 'Transferencia bancaria'; } else if($payment->payment_method === 'cash') { $paymentMethod = 'Efectivo'; } @endphp