@extends('comm.template') @section('content')
<< 訪客登記 >>
      @foreach ($guests as $guest) @foreach ($etag_app as $app) @endforeach @if ($guest->start != null) @if ($guest->end != null) @else @if ( $guest->now >= 30 ) @if( $guest->now >= 60 ) @if( floor(($guest->now %1440) % 60 / 30) == 0 ) @else @endif @else @endif @else @endif @endif @else @endif @endforeach
戶號/姓名 訪客卡 通行
時組
通行
門組
車牌號碼 備註 車位 進場時間 離場時間 停放時間 費用
{{ $guest->name }} {{ $guest->card_code }} {{ $guest->time_group }} {{ $guest->group_id }} {{ $guest->license }} {{ $guest->memo }} {{ $guest->parking }} @if ($guest->pic1 != "" && file_exists( $app->WebPath . "\\hd_parking\\public\\img\\camera\\" . $guest->pic1)) {{ $guest->start }} @else {{ $guest->start }} @endif @if ($guest->pic2 != "" && file_exists( $app->WebPath . "\\hd_parking\\public\\img\\camera\\" . $guest->pic2)) {{ $guest->end }} @else {{ $guest->end }} @endif @if ($guest->start != null) @if ($guest->end != null) @if (floor($guest->minute / 1440) != 0) {{floor($guest->minute / 1440)}} 天 {{str_pad(floor(($guest->minute %1440)/60),1,'0',STR_PAD_LEFT)}} 時 {{str_pad(floor(($guest->minute %1440)%60),1,'0',STR_PAD_LEFT)}} 分 @else @if (floor(($guest->minute %1440)/60) != 0) {{floor(($guest->minute %1440)/60)}} 時 {{str_pad(floor(($guest->minute %1440)%60),1,'0',STR_PAD_LEFT)}} 分 @else @if (floor(($guest->minute %1440)%60) != 0) {{floor(($guest->minute %1440)%60)}} 分 @else 0 分 @endif @endif @endif @else @if (floor($guest->now / 1440) != 0) {{floor($guest->now / 1440)}} 天 {{str_pad(floor(($guest->now %1440)/60),1,'0',STR_PAD_LEFT)}} 時 {{str_pad(floor(($guest->now %1440)%60),1,'0',STR_PAD_LEFT)}} 分 @else @if (floor(($guest->now %1440)/60) != 0) {{floor(($guest->now %1440)/60)}} 時 {{str_pad(floor(($guest->now %1440)%60),1,'0',STR_PAD_LEFT)}} 分 @else @if (floor(($guest->now %1440)%60) != 0) {{floor(($guest->now %1440)%60)}} 分 @else 0 分 @endif @endif @endif @endif @endif {{ $guest->cost_total }}{{ ($guest->cost * floor(($guest->now / 60)) )}}{{ ($guest->cost * floor(($guest->now / 60)) ) + $guest->cost }}{{ $guest->cost }}{{ $guest->cost_base }}

 

@if ($pageCount > 1)
@if ($page > 1) < 第一頁 < 上一頁 @endif @for ($i = 1; $i <= $pageCount; $i++) @if ($page == $i) {{ $i }} @else {{ $i }} @endif @endfor @if ($page < $pageCount) 下一頁 > 最後一頁 > @endif
@endif

 

@stop @section('javascript') function search(){ if ($("#keyword").val()!=""){ location = '{{ url('manager/guest') }}/1/' + $("#keyword").val(); }else{ location = '{{ url('manager/guest') }}/1'; } } @stop