Current File : //home/tradevaly/text.tradevaly.com.bd/resources/views/backend/pages/rfq/show.blade.php
@extends('backend.ayaan.master')

@push('style')
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/css/all.min.css" integrity="sha256-2XFplPlrFClt0bIdPgpz8H7ojnk10H69xRqd9+uTShA=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/ti-icons@0.1.2/css/themify-icons.css">
@endpush

@section('content')
<div class="container">
  <div class="row justify-content-center">
      <div class="col-md-7 col-lg-4 mb-5 mb-lg-0 wow fadeIn">
          <div class="card border-0 shadow">
              <img src="{{asset('storage/images/admin/rfq/'.$rfq->image)}}" alt="...">
              <div class="card-body p-1-9 p-xl-5">
                  <div class="mb-4">
                      <h3 class="h4 mb-0">{{$rfq->name}}</h3>
                      <span class="text-primary">{{translate("CEO &amp; Founder")}}</span>
                  </div>
                  <ul class="list-unstyled mb-4">
                      <li class="mb-3"><a href="#!"><i class="far fa-envelope display-25 me-3 text-secondary"></i>&nbsp; {{$rfq->email}}</a></li>
                      <li class="mb-3"><a href="#!"><i class="fas fa-mobile-alt display-25 me-3 text-secondary"></i>&nbsp; {{$rfq->phone}}</a></li>
                      <li><a href="#!"><i class="fas fa-map-marker-alt display-25 me-3 text-secondary"></i>&nbsp; {{$rfq->industry_name}}</a></li>
                  </ul>
              </div>
          </div>
      </div>
      <div class="col-lg-8">
          <div class="ps-lg-1-6 ps-xl-5">
              <div class="mb-5 wow fadeIn">
                  <div class="text-start mb-1-6 wow fadeIn">
                      <h2 class="h1 mb-0 text-primary">{{translate("#RFQ (Details)")}}</h2>
                  </div>
                  <p>{!! $rfq->details !!}</p>
              </div>
              <div class="mb-5 wow fadeIn">
                  <div class="text-start mb-1-6 wow fadeIn">
                      <h2 class="mb-0 text-primary">{{translate("#Requirements")}}</h2>
                  </div>
                  <div class="row mt-n4">
                      <div class="col-sm-6 col-xl-4 mt-4">
                        <div class="card text-center border-0 rounded-3">
                            <div class="card-body">
                                <i class="ti-home icon-box medium rounded-3 mb-4"></i>
                                <h3 class="h5 mb-3">{{translate("Company Name")}}</h3>
                                <p class="mb-0">{{$rfq->industry_name}}</p>
                            </div>
                        </div>
                      </div>
                      <div class="col-sm-6 col-xl-4 mt-4">
                          <div class="card text-center border-0 rounded-3">
                              <div class="card-body">
                                  <i class="ti-layout-grid3 icon-box medium rounded-3 mb-4"></i>
                                  <h3 class="h5 mb-3">{{translate("Product Need")}}</h3>
                                  <p class="mb-0">{{$rfq->want_buy}}</p>
                              </div>
                          </div>
                      </div>
                      <div class="col-sm-6 col-xl-4 mt-4">
                          <div class="card text-center border-0 rounded-3">
                              <div class="card-body">
                                  <i class="ti-new-window icon-box medium rounded-3 mb-4"></i>
                                  <h3 class="h5 mb-3">{{translate("Basics")}}</h3>
                                  <p class="mb-0"> <b>Qty: </b>&nbsp; {{$rfq->qty}}  &nbsp; <b>Units:</b>&nbsp; {{$rfq->unit}} <br> <b>Freq:</b>&nbsp; {{$rfq->frequency}}  &nbsp; <b>Validity:</b>&nbsp; {{$rfq->validity}} </p>
                              </div>
                          </div>
                      </div>
                      <div class="col-sm-6 col-xl-4 mt-4">
                          <div class="card text-center border-0 rounded-3">
                              <div class="card-body">
                                  <i class="ti-medall-alt icon-box medium rounded-3 mb-4"></i>
                                  <h3 class="h5 mb-3">{{translate("Payment Methods")}}</h3>
                                  <p class="mb-0">
                                    @php 
                                    $data = json_decode($rfq->p_methods, true);
                                    @endphp
                                    @for ($i = 0; $i < count($data); $i++)
                                    {{ $data[$i] }}
                                    @endfor
                                  </p>
                              </div>
                          </div>
                      </div>
                      <div class="col-sm-6 col-xl-4 mt-4">
                          <div class="card text-center border-0 rounded-3">
                              <div class="card-body">
                                  <i class="ti-flag icon-box medium rounded-3 mb-4"></i>
                                  <h3 class="h5 mb-3">{{translate("Port")}}</h3>
                                  <p class="mb-0">{{$rfq->port}}</p>
                              </div>
                          </div>
                      </div>
                      <div class="col-sm-6 col-xl-4 mt-4">
                          <div class="card text-center border-0 rounded-3">
                              <div class="card-body">
                                  <i class="ti-notepad icon-box medium rounded-3 mb-4"></i>
                                  <h3 class="h5 mb-3">{{translate("Time & Date")}}</h3>
                                  <p class="mb-0"><b>{{ $rfq->created_at->format('  D.m.y  H:i') }}</b></p>
                              </div>
                          </div>
                      </div>
                      <div class="col-sm-6 col-xl-4">
                          <a class="btn btn-danger btn-xl confirmDelete" href="{{url('b2b/rfq/delete',$rfq->id)}}">{{translate("Delete")}}</a>
                      </div>
                  </div>
              </div>
          </div>
      </div>
  </div>
</div>
@stop

@push('script')
@endpush