@extends('layouts.layout')

@section('title', 'Hired Workers')


@section('main')

<div class="row justify-content-center">
  <div class="col-12 col-md-12">

    <?php foreach ($hired as $hire): ?>
    <div class="card border20 bg-white shadow p-3 mb-3">
      <div>
        <h2><a  href="/contract-view/{{ base64_encode($hire->id) }}" class="text-dark">{{ $hire->title }}</a></h2>
        <small>-{{ Carbon\Carbon::parse($hire->created_at)->format('Y-m-d') }}</small><br>
        <b class="text-info"><span>Budget:</span> ৳ {{ $hire->budget }}</b>
        <br>
        <b class="text-blue"><span>Bid Rate:</span> ৳ {{ $hire->amount }}</b>
        <br>
        <p>
          @if($hire->status==0)
          <u>Contract Running...</u>
          @endif
          @if($hire->status==1)
          <u>Contract Paid</u>
          @endif
        </p>
        
      </div>
    </div>
    <?php endforeach ?>

  </div>
</div>


@endsection