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

新規定期契約 > 契約期間を選択する

@if ($errors->has('month'))
{{ $errors->first('month') }}
@endif
@csrf

契約期間を選択してください。

@if ($regular_type->regular_class_1 == 1)
{{ optional($prices->where('price_month', 1)->first())->price ? number_format(optional($prices->where('price_month', 1)->first())->price) . '円' : '価格未設定' }}
@endif @if ($regular_type->regular_class_2 == 1)
{{ optional($prices->where('price_month', 2)->first())->price ? number_format(optional($prices->where('price_month', 2)->first())->price) . '円' : '価格未設定' }}
@endif @if ($regular_type->regular_class_3 == 1)
{{ optional($prices->where('price_month', 3)->first())->price ? number_format(optional($prices->where('price_month', 3)->first())->price) . '円' : '価格未設定' }}
@endif @if ($regular_type->regular_class_6 == 1)
{{ optional($prices->where('price_month', 6)->first())->price ? number_format(optional($prices->where('price_month', 6)->first())->price) . '円' : '価格未設定' }}
@endif @if ($regular_type->regular_class_12 == 1)
{{ optional($prices->where('price_month', 12)->first())->price ? number_format(optional($prices->where('price_month', 12)->first())->price) . '円' : '価格未設定' }}
@endif
@endsection