@extends('layouts.main') @section('content')
@if(Session::has('unauthorize'))
× {{ Session::get('unauthorize') }}
@endif @if(Session::has('update'))
× {{ Session::get('update') }}
@endif @if(Session::has('success'))
× {{ Session::get('success') }}
@endif
{!! Form::open(['url' => 'company/search', 'class' => 'form-inline', 'role' => 'form', 'autocomplete' => 'off']) !!}
{!! Form::text('search', $search, ['class' => 'form-control', 'placeholder' => 'Search Company']) !!} {!! Form::button(' Search', ['class' => 'btn btn-primary btn-xs', 'type' => 'submit', 'title' => 'Search']) !!} Reset
{!! Form::close() !!}
@if($companies->isEmpty())
No existing company found.
@else @foreach($companies as $company) @endforeach
Company Name Company Address E-mail Address Phone No. Website
{{ $company->c_name }} @if(!empty($company->c_address)) {{ $company->c_address }} @endif @if(!empty($company->c_email)) {{ $company->c_email }} @endif @if(!empty($company->c_telephone)) {{ $company->c_telephone }} @endif @if(!empty($company->c_website)) {{ $company->c_website }} @endif @if(Auth::user()->u_id == $company->u_id) @endif
@if($companies->render())
@if($search == '') {!! $companies->render() !!} @else {!! $companies->appends(Request::only('search'))->render() !!} @endif
@endif @endif
@stop