@extends('adminlte::layouts.app') @section('htmlheader_title') {{ trans('adminlte_lang::message.home') }} @endsection @section('main-content')

Sección donde se muestran los gastos.


Lista de Gastos

@foreach($expenses as $expense) @endforeach
Nombre Compañía Descripción Común Torres Apartamentos Acciones
{{ $expense->name }} {{ $expense->company }} {{ $expense->description }} @if($expense->common == "0")
@else
@endif
@if($expense->towers->count() > 0) {!! "
  • ".$expense->towers->pluck("name")->implode("
  • ")."
  • " !!} @else
    @endif
    @if($expense->apartments->count() > 0)
    {{-- {!! $expense->apartments->pluck('apartment')->implode("
    ") !!} --}} @elseif($expense->towers->count() > 0)
    incluye todos
    @else
    incluye todos
    @endif
    {!!link_to_route('admin.expenses.edit', $title = ' Editar', $parameters = ['id' => Crypt::encrypt($expense->id)], $attributes = ['class'=>'btn btn-warning fa fa-edit']);!!} @if($expense->invoices->count() == 0)
    {!! csrf_field() !!} {!! method_field('DELETE') !!}
    @endif
    Nombre Compañía Descripción Común Torres Apartamentos Acciones
    @endsection