@extends('backend.includes.panel') @section('page_css') @stop @section('inner_page_link') @stop @section('main_content')
@include('backend.includes.common-job-detail')

Biddings

@php $editable = true; @endphp @if(strtotime(date('Y-m-d H:i',strtotime($company_job->bid_end_date))) < strtotime(date('Y-m-d H:i'))) @php $editable = false; @endphp @endif {{ Form::open(['route' => 'job_bid.store','class'=>'form-horizontal form-material','data-parsley-validate'=>'','method'=>'POST','autocomplete'=>'off','enctype'=> 'multipart/form-data','data-parsely-validate' => true]) }} {{ Form::hidden('company_job_id', $company_job->id, array('id' => 'company_job_id')) }}

@if(isset($jobBidInfo) && $jobBidInfo->status != -1) Job bid {!! (isset($jobBidInfo) && $editable && $jobBidInfo->is_editable == 1 ? '(Edit your bid and submit : Not compulsory action)' : '' ) !!} @elseif(isset($jobBidInfo->status) && $jobBidInfo->status == -1) Bid canceled {!! ('(You have canceled bid for this job)') !!} @endif @if($company_job->status == 1 && (!isset($jobBidInfo) || ($jobBidInfo->is_editable == 1)) && $editable) @else @if(isset($jobBidInfo->status) && $jobBidInfo->status != -1 && $jobBidInfo->companyJob->status == 1) @endif @endif

@if($company_job->status == 1 && (!isset($jobBidInfo) || ($jobBidInfo->is_editable == 1)) && $editable)
{{ Form::text('price',(isset($jobBidInfo) ? $jobBidInfo->bid_amount : '' ),['class'=>'form-control','placeholder'=>'Enter bid Price','data-parsley-required'=>'true','data-parsley-type'=>'number','data-parsley-min'=>1]) }}
@if($company_job->companyJobBidRequirements->count() > 0)
  {{ Form::checkbox('checklist_verified',1,(old('checklist_verified') || (isset($jobBidInfo) && ($jobBidInfo->requirement_checklist_verified == 1)) ? 'checked' : ''),['class'=>'check','data-parsley-required'=>'true','id'=>'requirement_checklist']) }}
I accept all the requirement checklist will be provided
@endif @else @if(isset($jobBidInfo))
{{ \Config::get('custom.currency').' '.$jobBidInfo->bid_amount}}
@if($company_job->companyJobBidRequirements->count() > 0 && $jobBidInfo->requirement_checklist_verified == 1)
{{ implode(', ',$company_job->companyJobBidRequirements->pluck('title')->toArray()) }}
@endif @else Bidding period is over @endif @endif @php $files = ''; @endphp @if(isset($jobBidInfo->files) && !empty($jobBidInfo->files)) @foreach($jobBidInfo->files as $file) @php $files .= ''; @endphp @endforeach @endif
{!! $files !!}
@if(isset($errors) && $errors->first('price')) {{ $errors->first('name') }} @endif
{{ Form::close() }}
@if($company_job->status == 3)

Action

{{ Form::open(['route' => ['job.complete',$company_job->id],'method'=>'POST','id'=>'job_complete_form']) }} {{ Form::close() }}
@endif
@stop @section('page_script') @stop