@extends('layouts.app') @section('content')
Search Contractors
{{ Form::open(['route' => 'client-management.search_contractor', 'id' => 'search_contractor']) }} {{ Form::label('Location:') }} {{ Form::select('location',$data['suburb'],isset($data['location']->suburb_id)?$data['location']->suburb_id:0,['class' => 'form-control']) }} {{ Form::label('Price Range:') }}
{{-- Form::select('price_range',$data['price_ranges'],null,['class' => 'form-control']) --}} @foreach($data['price_ranges'] as $range) {{ Form::checkbox('price_range[]', $range) }} {{ $range }}.
@endforeach {{ Form::label('Service(s):') }}
@foreach($data['services'] as $service) {{ Form::checkbox('services[]', $service->id) }} {{ $service->service }}.
@foreach($service->active_subservices as $sub_service) {{ Form::checkbox('sub_services[]', $sub_service->id, null, ['style' => 'margin-left: 15px']) }} {{ $sub_service->service }}.
@endforeach @endforeach {{ Form::submit('Search', ['class' => 'btn btn-info btn-sm', 'style' => 'margin-top: 10px; float: right']) }} {{ Form::close() }}
@if(session()->has('message'))
{{ session()->get('message') }}
@endif
@foreach($data['contractors'] as $contractor)
{{ $contractor->user_information->company }} Place Request
Rate/h: R{{ $contractor->user_information->hourly_rate }}
Operating Hours: {{ $contractor->user_information->operating_hours }}
Service(s):
    @if(count($contractor->services) > 0) @foreach($contractor->services as $service)
  • {{ $service->service->service }}
  • @endforeach @else
  • N/A
  • @endif
@endforeach
@if(count($data['contractors']) > 0) {{ $data['contractors']->links() }} @endif
@endsection @section('scripts') @endsection