@extends('layouts.master_app') @section('title') Pagos @endsection @section('menu_proposals', 'here show') @section('css') @endsection @section('content')

Pagos

@include('partials.success') @include('partials.error')

Pagos


@php $totalAmountPagos= 0; @endphp @foreach($pagos as $index => $item) @php $totalAmountPagos += $item->amount; @endphp @endforeach
Fecha Monto Concepto Forma de pago Observaciones
01-01-1970 ${{ number_format($item->amount,2) }}
{{$item->status->name ?? ''}}
{{ $item->concept }} {{ $item->payment_methods->name ?? ''}} {{ $item->observations }} @if($item->proposal->sale_contract->purchase_type_id==2) Pagaré @endif

Gastos
@php $totalAmountIventory = 0; @endphp @foreach($inventory as $index => $item) @php $totalAmountIventory += $item->amount; @endphp @endforeach
Concepto Monto
{{ $item->name }} ${{ number_format($item->amount,2) }}

Costos


Ingresos: ${{ number_format($totalAmountPagos,2) }}


Egresos: ${{ number_format($totalAmountIventory,2) }}


Utilidad: ${{ number_format($totalAmountPagos - $totalAmountIventory,2) }}


@endsection @section('js') @endsection