@extends('layout.layout') @php $chargeType = $data['chargeType'] ?? 'period'; @endphp @section('content') @include('custom::component.reply-btn', ['url' => url()->previous()])
租借資訊
@include('rent::component.rent-detail', [ 'role' => 'user', 'rent' => $rent, 'area' => $areas, 'types' => $data['types'], 'course' => $data['course'], ])
@if (isset($data['peripheral']))
週邊設備
@include('rent::component.peripheral-detail', [ 'peripherals' => $data['peripheral'], ])
@endif @if (empty($data['isIntramural']))
日期規劃
@include('rent::component.schedule-detail', [ 'dates' => $dates, 'chargeType' => $chargeType, 'basic' => $data['basic'], ])
@if(in_array($rent->status,['6b','0c','2c','3c','6c','0d','8','9']) && $rent->rental) @if (isset($data['peripheral']) && count($data['peripheral']))
@include('rent::component.trial-balance-detail', [ 'rental' => $rent->rental, 'dates' => $dates, 'chargeType' => $chargeType, 'basic' => isset($data['basic'])?$data['basic']:array(), 'peripherals' => isset($data['peripheral'])?$data['peripheral']:array(), ]) *實際繳交金額以信件通知為準!
@endif @endif @endif
@can('manage', $rent) @if ($rent->status === 'N') 編輯 @elseif (in_array($rent->status, ['0', '4'])) 編輯 @elseif (in_array($rent->status, ['3b', '0c'])) 填寫租借資料 @elseif (in_array($rent->status, ['3', '6', '0b', '3c', '6c', '0d']) && (\Auth::user()->role != 'student' && \Auth::user()->role != 'teacher')) 上傳收據 @endif @endcan @if(in_array($rent->status, ['N', '0', '1', '4', '5'])) @endif
@include('custom::component.delete-window', ['url' => route('user.rent.destroy', $rent)]) @endsection {{-- Script --}} @push('scripts') @endpush