@extends('layouts.app') @section('title', __('Project View')) @push('pre_css') @include('panel.inc.flatpicker.css') @endpush @section('content')
@include('panel.customers._customer-details', ['customer' => $campaign->customer, 'isMini' => true])
@include('panel.campaigns.pages._navigation', ['campaign' => $campaign])
@foreach($campaign->services as $service)

{{ $service->title }}
Department: {{ $service->department->title }}

{{ $service->pivot->price }}
@if(\Gate::allows('campaigns-commands-assign-department')) Department @endif @if(\Gate::allows('campaigns-commands-add')) @endif @if(\Gate::allows('campaigns-services-edit')) @endif @if(\Gate::allows('campaigns-services-delete')) @endif
{{ $service->description ?? '-' }}
@foreach($service->campaignCommands as $command)
{{ $command->title }}
{{ $command->tech_id ? $command->tech->name : '-' }}
{{ $command->due_date ? $command->due_date->toDateString() : '-' }} {{ $command->due_time ? $command->due_time->format('h:i A') : '' }}
{{ $command->end_date ? $command->end_date->toDateString() : '-' }}
@if(!$command->department_id) Un-Assigned @elseif($command->end_date) Completed @else Pending @endif
{!! $command->note ? nl2br($command->note) : '-' !!}
{!! $command->completion_note ? nl2br($command->completion_note) : '-' !!}
@if(!$command->department_id && \Gate::allows('campaigns-commands-assign-department')) Assign Department @endif @if(!$command->end_date && \Gate::allows('campaigns-commands-mark-complete')) Mark Completed @endif @if(!$command->end_date && \Gate::allows('campaigns-commands-assign-tech')) Assign Tech @endif @if(\Gate::allows('campaigns-commands-edit')) @endif @if(\Gate::allows('campaigns-commands-delete')) @endif
@endforeach
@endforeach
@foreach($campaign->customCommands as $command)
{{ $command->title }}
{{ $command->price }}
{{ $command->tech_id ? $command->tech->name : '-' }}
{{ $command->due_date ? $command->due_date->toDateString() : '-' }} {{ $command->due_time ? $command->due_time->format('h:i A') : '' }}
{{ $command->end_date ? $command->end_date->toDateString() : '-' }}
@if(!$command->department_id) Un-Assigned @elseif($command->end_date) Completed @else Pending @endif
{{ $command->note ?? '-' }}
{{ $command->completion_note ?? '-' }}
@if(!$command->department_id && \Gate::allows('campaigns-commands-assign-department')) Assign Department @endif @if(!$command->end_date && \Gate::allows('campaigns-commands-mark-complete')) Mark Completed @endif @if(!$command->end_date && \Gate::allows('campaigns-commands-assign-tech')) Assign Tech @endif @if(\Gate::allows('campaigns-commands-edit')) @endif @if(\Gate::allows('campaigns-commands-delete')) @endif
@endforeach
@stop @push('script') @include('panel.inc.flatpicker.js') @endpush