@if (Request::get('action') == 'delete' && $customer) @php $dependentRecordsCount = 0; @endphp
{{ $customer->name }}
{{ $customer->email }}
{{ $customer->is_active }}
{{ $projectsCount = $customer->projects()->count() }}
@php $dependentRecordsCount += $projectsCount; @endphp{{ $subscriptionsCount = $customer->subscriptions()->count() }}
@php $dependentRecordsCount += $subscriptionsCount; @endphp{{ $customer->notes }}
{!! $errors->first('customer_id', ':message') !!}