@extends('layouts.app') @section('content')
{{$titulo}}
| # | Tratamiento | Precio Publico | Tipo | Doctor | Porcentaje | Pago Monto | @if ($visible)Ganancia ClĂnica | @endif
|---|---|---|---|---|---|---|---|
| {{ $pago->id }} | {{ $pago->tratamiento }} | Q. {{ number_format($pago->precio,2)}} | {{ $pago->tipo }} | {{ $pago->doctor }} | @php $pagoDoctor = ($pago->precio * $pago->porcentaje) / 100; $gananciaClinica = $pago->precio - $pagoDoctor; @endphp{{ $pago->porcentaje }} % | Q. {{ number_format($pagoDoctor,2) }} | Q. {{ number_format($pago->monto,2) }} | @if ($visible){{ number_format($gananciaClinica - $pago->monto,2) }} | @endif