@extends('layouts.masterNew', ['vueView' => 'opportunities-index'])
@section('content')
@include('Opportunities.filterForm')
|
Offer |
Description |
More Info |
@foreach($opportunity as $opportunityItem)
| |
{{-- Brands (Comma) --}}
@if($opportunityItem->brands_to_agency_same_as_dept == 1)
@foreach($opportunityItem->brands as $brand)
{{ $brand->name }}@if (!$loop->last), @else @endif
@endforeach
@else
@foreach($opportunityItem->brandsToAgency as $brand)
{{ $brand->name }}@if (!$loop->last), @else @endif
@endforeach
@endif
{{-- Title --}}
@if($opportunityItem->name && $opportunityItem->name != '')
{{ $opportunityItem->name }}
@endif
{{-- DATES --}}
@if($opportunityItem->date_start && $opportunityItem->date_end)
Dates:
@elseif($opportunityItem->date_start || $opportunityItem->date_end)
Date:
@endif
@if($opportunityItem->date_start)
{{ $opportunityItem->date_start }}
@endif
@if($opportunityItem->date_start && $opportunityItem->date_end)
to
@endif
@if($opportunityItem->date_end)
{{ $opportunityItem->date_end }}
@endif
{{-- Budget --}}
@if($opportunityItem->budget_min)
${{ number_format($opportunityItem->budget_min) }}
@endif
@if($opportunityItem->budget_min && $opportunityItem->budget_max)
to
@endif
@if($opportunityItem->budget_max)
${{ number_format($opportunityItem->budget_max) }}
@endif
@if($opportunityItem->created_at)
Date Created: {{ $opportunityItem->created_at->format('m/d/Y') }}
@endif
@if($opportunityItem->updated_at)
Date Updated: {{ $opportunityItem->updated_at->format('m/d/Y') }}
@endif
|
@if($opportunityItem->description)
{!! nl2br($opportunityItem->description) !!}
@endif
|
|
@endforeach
@stop