@extends('layouts.admin') @section('title', '收租管理') @push('breadcrumb') @endpush @push('styles') @endpush @section('content') {{-- Month navigation --}}
@php $prev = \Carbon\Carbon::create($year, $month, 1)->subMonth(); $next = \Carbon\Carbon::create($year, $month, 1)->addMonth(); @endphp 上月 下月
@csrf 自動帶出宿舍租金支出與已入住工人租金收入
{{-- Month lock banner --}} @if($isLocked)
{{ $year }} 年 {{ $month }} 月帳目已鎖定,所有項目不可修改。如需修改請先解鎖。
@can('performAdminAction')
@csrf
@endcan
@elseif(true)
@can('performAdminAction')
@csrf
@endcan
@endif {{-- Summary --}}
總收入
${{ number_format($totalIncome, 2) }}
總支出
${{ number_format($totalExpense, 2) }}
結餘
${{ number_format($balance, 2) }}
明細
宿舍租 ${{ number_format($totalDormExpense, 2) }} · 宿舍收 ${{ number_format($totalDormIncome, 2) }} · 其他收 ${{ number_format($totalOtherIncome, 2) }} · 其他支 ${{ number_format($totalOtherExpense, 2) }}
{{-- Dorm rent expenses --}}
宿舍租金支出
@forelse($dormRentExpenses as $item) @empty @endforelse
宿舍 金額 備註 操作
{{ $item->dormitory?->displayName() }}
@csrf @method('PUT')
@if(auth()->user()->isAdmin())
@csrf @method('DELETE')
@endif
本月尚無宿舍租金支出。請先設定宿舍月租並按「產生本月帳目」。
{{-- Dorm rent incomes --}}
宿舍租金收入(按宿舍)
@forelse($dormRentIncomes as $item) @empty @endforelse
宿舍 金額 備註 操作
{{ $item->dormitory?->displayName() }}
@csrf @method('PUT')
@if(auth()->user()->isAdmin())
@csrf @method('DELETE')
@endif
本月尚無宿舍租金收入。請先設定宿舍「月租(收入)」並按「產生本月帳目」。
{{-- Other entries --}}
其他開支及收入
@csrf
@forelse($otherEntries as $item) @empty @endforelse
宿舍 類型 類別 標題 金額 備註 操作
@csrf @method('PUT')
@if(auth()->user()->isAdmin())
@csrf @method('DELETE')
@endif
尚無其他開支/收入。
@endsection @push('scripts') @endpush