@extends('layouts.master') @section('title') Quotes @endsection @section('content') @if (session('success')) @endif @if (session('error')) @endif
Create Quote
@foreach ($quotes as $quote) {{-- Display QuoteItems --}} @php $total_quantity = 0; foreach ($quote->quoteitems as $quoteitem) { $total_quantity = $total_quantity + $quoteitem->quantity; } @endphp @endforeach
Quote No Created Updated Sales Rep To From Quantity Total Price Edit
{{ $quote->quote_no }} {{ $quote->created_at }} {{ $quote->updated_at }} {{ $quote->salesRep->name }} {{ $quote->customer->to }} @if (Str::endsWith($quote->vcloud_entity, 'tech')) vCloud Tech Inc. @elseif (Str::endsWith($quote->vcloud_entity, 'gov')) vCloud Gov Inc. @else {{ $quote->vcloud_entity }} @endif {{ $total_quantity }} {{ $quote->total_pricing }}
{{-- Edit --}} @if (Auth::user()->name == 'Dev' || Auth::user()->name == 'Harry King') Delete @endif Print PDF Edit PDF
@endsection