@extends('layouts.app') @section('title', 'Reporte Quincenal') @section('content')

Reporte Quincenal

Ver Mensual
@if($report)
{{ $report['period'] }}
{{ $report['description'] }}
@if($report['type'] === 'anticipo')
Mitad Sueldo

${{ number_format($report['biweekly_salary'], 2) }}

Comisiones del Mes

+${{ number_format($report['commission_amount'], 2) }}

Total ANTICIPO

${{ number_format($report['total_earning'], 2) }}

@else
Mitad Sueldo

${{ number_format($report['biweekly_salary'], 2) }}

Gastos Q{{ $biweekly }}

-${{ number_format($report['expenses_q2'], 2) }}

Total LIQUIDACIÓN

${{ number_format($report['total_earning'], 2) }}

@endif
@if(count($expenses) > 0)
Gastos de la Quincena
@foreach($expenses as $expense) @endforeach
Fecha Descripción Tipo Monto
{{ $expense->date->format('d/m/Y') }} {{ $expense->description }} @if($expense->expense_type == 'q1') Q1 @elseif($expense->expense_type == 'q2') Q2 @else Mensual (mitad) @endif ${{ number_format($expense->expense_type == 'mensual' ? $expense->amount / 2 : $expense->amount, 2) }}
@endif @else
No hay datos para mostrar.
@endif
← Volver al Dashboard
@endsection