@extends('user::layouts.master') @push('styles') @endpush @section('content')

Manage Quotation

@include('layouts.flash.alert')

Quotation

Delivery Date: {{ $quotation->delivery_date }} Delivery Time: {{ $quotation->delivery_time }} Delivery Address: {{ $quotation->delivery_address }}
@if($quotation->materials->isNotEmpty()) @foreach($quotation->materials as $material) @endforeach @endif
Activity Code Activity Image Unit Quantity
{{ $material->activityOfMaterial->item_code }} {{ $material->activity }} @if(\Storage::disk('public')->has('quotations/'.$material->photo)) @else @endif {{ $material->unit }} {{ $material->quantity }}
Note: {{ $quotation->notes }}
{{ Form::open(['route' => ['quotations.supplier.quotation.reply', $quotation->id], 'method' => 'post', 'enctype'=> 'multipart/form-data']) }}

Quotation Reply

@if($materials->isNotEmpty()) @foreach($materials as $material) @endforeach @endif
Activity Code Activity Image Unit Quantity Rate Total
{{ $material->activityOfMaterial->item_code }}
@if($errors->has('materials.*.activity')) {{ $errors->first('materials.*.activity') }} @endif
@if($errors->has('materials.*.unit')) {{ $errors->first('materials.*.unit') }} @endif
@if($errors->has('materials.*.quantity')) {{ $errors->first('materials.*.quantity') }} @endif
@if($errors->has('materials.*.rate')) {{ $errors->first('materials.*.rate') }} @endif
@if($errors->has('materials.*.total')) {{ $errors->first('materials.*.total') }} @endif
  Carriage costs
@if($errors->has('carriage_costs')) {{ $errors->first('carriage_costs') }} @endif
  C of C
@if($errors->has('c_of_c')) {{ $errors->first('c_of_c') }} @endif
  Other costs
@if($errors->has('other_costs')) {{ $errors->first('other_costs') }} @endif
  Total Value
@if($errors->has('grand_total')) {{ $errors->first('grand_total') }} @endif

Conversation

@if($conversations->isNotEmpty())
@foreach($conversations as $conversation)
@if($conversation->sender_id == auth()->id()) You @else {{ $conversation->sender->company_name }} @endif {{ $conversation->created_at->format('d M Y g:i A') }}
@if(\Storage::disk('public')->has($conversation->sender->avatar)) @else @endif
{{ $conversation->notes }}
@endforeach
@else

No conversations yet!

@endif
{{ Form::close() }}
@stop @push('scripts') @endpush