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

回送車使用状況

{{ Form::open(["route"=>"backend.{$department}.forwarding_request.forwarding_calendar", "method"=>"get", "id"=>"calendar_search_form"]) }}

検索条件

社用車種別
ドアナンバー 登録番号
{{ Form::close() }}
@php $start_month = 1; $end_month = 1; $current_date = Carbon::now(); if (Carbon::parse($start_time)->diffInMonths(Carbon::parse($current_month)) > 0 || (Carbon::parse($start_time)->diffInMonths(Carbon::parse($current_month)) == 0 && intval(Carbon::parse($current_month)->format('m')) - intval(Carbon::parse($start_time)->format('m')) == 1)){ $start_month = 0; } if (Carbon::parse($end_time)->diffInMonths(Carbon::parse($current_month)) != 0){ $end_month = 0; } $start_day = 1; $end_day = intval(Carbon::parse($current_month.'-01')->endOfMonth()->format('d')); if($start_month == 1 && $end_month == 1){ $start_day = intval(Carbon::parse($start_time)->format('d')); $end_day = intval(Carbon::parse($end_time)->format('d')); } else if($start_month == 1 && $end_month != 1){ $start_day = intval(Carbon::parse($start_time)->format('d')); } else if($start_month != 1 && $end_month == 1){ $end_day = intval(Carbon::parse($end_time)->format('d')); } $period = Carbon\CarbonPeriod::create(Carbon::now()->subDays(30)->format('Y-m-d'), Carbon::now()->addDays(30)->format('Y-m-d')); @endphp {{-- --}} @if (($period->last()->month - $period->first()->month) < 2) @else @endif @foreach ($period as $item) @endforeach @foreach ($period as $item) @endforeach @if ($vehicles->count() > 0) @foreach ($vehicles as $vehicle) @foreach ($period as $item) @endforeach @endforeach @else @endif
管理担当者社用車種別 @sortablelink('own_vehicle_type', ' ▲▼') ドアナンバー @sortablelink('door_number', ' ▲▼') 登録番号 @sortablelink('register_no', ' ▲▼') 型式 @sortablelink('vehicle_model', ' ▲▼'){{ $period->first()->year.'年'.$period->first()->month.'月' }} {{ $period->last()->year.'年'.$period->last()->month.'月' }}{{ $period->first()->year.'年'.$period->first()->month.'月' }} {{ $period->first()->year.'年'.($period->first()->copy()->month + 1).'月' }} {{ $period->last()->year.'年'.$period->last()->month.'月' }}
{{ $item->day }}
{{ config('const.jp_week.'.$item->dayOfWeek) }}
{{ config('const.own_vehicle_type.'.$vehicle->own_vehicle_type) }} {{ $vehicle->door_number }} {{ $vehicle->register_no }} {{ $vehicle->vehicleModel() }}
データが存在しません。
@endsection @section('page_css') @endsection @section('page_js') @endsection