@extends ('../welcome') @section('content')

{{$unit->client?->name}} - {{$unit->name}}

@if($unit->client) @endif
Total Paid For Unit:  

{{$totalPaid_unit}}

Total Remaining For Unit:  

{{$unit->client ? $totalRemaining_unit : $totalRemaining_unit . '%'}}

Total Paid for Maintenance:  

{{$totalPaid_maintenance}}

Total Remaining for Maintenance:  

{{$unit->client ? $totalRemaining_maintenance : $totalRemaining_maintenance . '%'}}

user()->type == 'admin' || auth()->user()->role->hasPermission('batches-export') ? 'example1' : 'nonExport' }} class="table table-bordered table-striped"> @if($totalRemaining_maintenance != 0 || $totalRemaining_unit != 0) @endif @foreach ($unit->batches as $batch) @if($totalRemaining_maintenance != 0 || $totalRemaining_unit != 0) @endif @endforeach
Title Type Amount Date Status Checked byActions
{{$batch->title ?? ''}} {{$batch->type ?? ''}} {{$batch->amount ?? ''}} {{$unit->client ? $temp[0] : ''}} {{$batch->status ?? ''}} {{$batch->user?->name ?? ''}}
@if($batch->status != 'paid') @endif
@endsection