@extends('backend.includes.panel') @section('page_css') @stop @section('inner_page_link') @stop @section('main_content')

Contractor Detail


{{ $contractor->name }}

{{ $contractor->email }}

{{ $contractor->Company->name }}

{{ $contractor->phone }}

@if($contractor->status ==1) Approved @elseif($contractor->status ==2) Rejected @else Pending @endif

{{ $contractor->ContractorInfo->wsib_no }}

@if(!empty($contractor->ContractorInfo->acmo_registered) && $contractor->ContractorInfo->acmo_registered == 1) Yes @else No @endif

@if(!empty($contractor->ContractorInfo->cci_registered) && $contractor->ContractorInfo->cci_registered == 1) Yes @else No @endif

{{ $contractor->ContractorInfo->business_trade_number }}

{{ date('d-m-Y',strtotime($contractor->ContractorInfo->expiry_date)) }}

@php $i = 1; $tot = count($contractor->contractorCategories); @endphp @foreach($contractor->contractorCategories as $category) {{$category->categories->name}} @if($i < $tot) , @endif @php $i++; @endphp @endforeach

@if(!empty($contractor->image)) @php $pictures =""; $pictures .= ''; @endphp @endif @if(!empty($pictures)) {!! $pictures !!} @else
No, Pictures available at the moment!
@endif

@if(!empty($contractor->ContractorInfo->attachment)) @if(\File::extension($contractor->ContractorInfo->attachment)=='pdf') @php $pdfs =""; $pdfs .= ''; @endphp @elseif(\File::extension($contractor->ContractorInfo->attachment)=='doc') @php $pdfs =""; $pdfs .= ''; @endphp @else @php $pictures =""; $pictures .= ''; @endphp @endif @endif @if(!empty($pdfs)) {!! $pdfs !!} @elseif(!empty($pictures)) {!! $pictures !!} @else
No, Pdfs available at the moment!
@endif
@stop @section('page_script') @stop