@extends('layouts.app') @section('content')

契約履歴 > 定期契約履歴を見る

@if(count($contracts) > 0) @foreach($contracts as $i => $contract) @if($i % 2 == 0)
@endif
定期契約ID {{ $contract->contract_id }}
駐輪場名 {{ $contract->park_name }}
利用者区分 {{ $contract->usertype_subject1 }}
開始日 {{ \Carbon\Carbon::parse($contract->contract_periods)->format('Y/m/d') }}
月数 {{ $contract->enable_months }}ヶ月
更新時期 {{ $contract->periode_with_grace }}
@php $has_receipt = DB::table('inv_publish')->where('contract_id', $contract->contract_id)->exists(); @endphp @if($has_receipt) 領収書再発行 @else 領収書発行 @endif
@if($i % 2 == 1 || $i == count($contracts) - 1)
@endif @endforeach
{{ $contracts->links('partials.paging') }}
@else

定期契約情報はありません。

@endif
@endsection