@if (Request::get('action') == 'delete' && $customer) @php $dependentRecordsCount = 0; @endphp

{{ trans('customer.delete') }}

{{ $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') !!}

@if ($dependentRecordsCount)
{{ trans('customer.undeleteable') }}
@else
{{ trans('app.delete_confirm') }}
@endif
@endif