@extends('backend.layouts.app') @section('content') @if(isset($is_confirm) && $is_confirm) @if(isset($params->id) && $params->id)

過去作業【確認】

@else

過去作業【確認】

@endif @else

過去作業【閲覧】

@include('backend.layouts.flash-message') @endif @if(isset($is_confirm) && $is_confirm) @if(isset($params->id) && $params->id) {{ Form::open(["route"=>"backend.{$department}.renovation.update", "method"=>"post", "id"=>"save_form"]) }} @else {{ Form::open(["route"=>"backend.{$department}.renovation.store", "method"=>"post", "id"=>"save_form"]) }} @endif @endif @foreach(range(0, 2) as $index) @php $path_field = 'current_image_path'.$index; $name_field = 'current_image_name'.$index; if($index == 0){ $file_path = (isset($params->last_image_path) ? $params->last_image_path : ''); $file_name = (isset($params->last_image_name) ? $params->last_image_name : ''); } else { $file_path = (isset($params->$path_field) ? $params->$path_field : ''); $file_name = (isset($params->$name_field) ? $params->$name_field : ''); } @endphp @endforeach
タイトル {{ (isset($params->title) ? $params->title : '') }}
日付 {{ (isset($params->registered_at) ? Carbon::parse($params->registered_at)->format('Y.m.d H:i') : '') }}
{{ $index == 0 ? '前の写真' : '後にの写真'.$index }} @if (!empty($file_path) && Storage::disk('temp')->has($file_path)) @elseif(isset($params->id) && !empty($file_path) && Storage::disk('renovation')->has($params->id.'/'.$file_path)) @endif
@if(isset($is_confirm) && $is_confirm) @if(isset($params->id) && $params->id) $params->id, 'is_confirm'=>1]) }}"' value="戻る"> @else 1]) }}"' value="戻る"> @endif @else @endif
{{ Form::close() }} @endsection @section('page_css') @endsection @section('page_js') @endsection