@extends('front.layouts.main') @section('content')

{{$project->name}}

{{@$gcompany->company_name}}
@if(\Auth::user()->user_role->user_type == 2) @include('front.projects.menu') @endif

Weather Details

@if($isNoWorkDone) @else @endif
created_at)))}}" id="project_created_date" data-date="{{date('m-d-Y',strtotime(str_replace(",", "", $project->created_at). ' -1 year'))}}"> created_at). ' -1 year'))}}"> View Report
@include('front.projects.weather')
@include('front.projects.attributes')
@if(count($hours)) @foreach($hours as $hour) @endforeach @else @endif
Name / Description Quantity Hours Total Actions
{{++$i}}
{{$hour->name}}
{{$hour->description}}
{{$hour->quantity}} {{$hour->hours}} {{$hour->total_hours}}
Total {{$hours->sum('quantity')}} {{$hours->sum('hours')}} {{$hours->sum('total_hours')}}
{!! Form::open(array('route' => 'projectinfo-hours.store','method'=>'POST','id'=>'myform')) !!} {!! Form::hidden('project_id',request()->input('project_id')) !!} {!! Form::hidden('submission_date',\Session::get('sdate')?\Session::get('sdate'):null,['id'=>'submission_date']) !!}
{!! Form::text('name', null, array('placeholder' => 'Contractor Name','class' => 'form-group-input','id' => 'inputName1')) !!}
{{ $errors->first('name', ':message') }}
{!! Form::text('description', null, array('placeholder' => 'Description','class' => 'form-group-input','id' => 'description')) !!}
{{ $errors->first('description', ':message') }}
  {!! Form::text('quantity', 0, array('style'=>'width:30px; text-align:center','class' => 'form-inp','id'=>'addquantity')) !!}
{{ $errors->first('quantity', ':message') }}
  {!! Form::text('hours', 0, array('style'=>'width:30px; text-align:center','class' => 'form-inp','id'=>'noOfRoom')) !!}
{{ $errors->first('hours', ':message') }}
{!! Form::close() !!}
{!! Form::model('',['method' => 'PATCH', 'route' => ['projectinfo-hours.update','id'=>''], 'id'=>'updateForm']) !!} {!! Form::hidden('project_id',request()->input('project_id')) !!}
{!! Form::text('name', null, array('placeholder' => 'Contractor Name','class' => 'form-group-input','id' => 'name')) !!}
{{ $errors->first('name', ':message') }}
{!! Form::text('description', null, array('placeholder' => 'Description','class' => 'form-group-input','id' => 'description')) !!}
{{ $errors->first('description', ':message') }}
  {!! Form::text('quantity', null, array('style'=>'width:30px;text-align:center','class' => 'form-inp','id' => 'quantity')) !!}
{{ $errors->first('quantity', ':message') }}
  {!! Form::text('hours', null, array('style'=>'width:30px;text-align:center','class' => 'form-inp','id' => 'hours')) !!}
{!! Form::close() !!}
@endsection @section('js') @if(Session::has('add_popup')) @endif @endsection