{{-- Inställningar (DESIGN.md Page patterns 5, Account and settings; #2957 slice 6a, card #3020). Rendered by account.edit (the customer's own company) and admin.company.edit (any company, admin only). Package as a tile row plus the receiver usage bar, the package chooser (a native select replacing the ionRangeSlider), the company details form and card payment; the admin route adds comments, the abandoned/spam marker, extra fields, extra services and campaign codes as cards below. Admin navigation is provided by the shared shell. Params from CompanyController@edit: $company, $packages, $min_receiver, $package_index, $card, $disable. --}} @extends('layouts.nuhet') @php $isAdminRoute = request()->routeIs('admin.company.edit'); $pageTitle = $isAdminRoute ? $company->name : (request('tab') === 'company' ? __('company.nh.detailsTitle') : __('company.nh.subscriptionTitle')); $unpaidInvoice = $company->invoices()->where('paid', 0)->where('duedate', '<', \Carbon\Carbon::now()->subMinute())->first(); $requestedCompanyTab = request()->query('tab'); $initialCompanyTab = in_array($requestedCompanyTab, ['subscription', 'company', 'payment', 'administration'], true) ? $requestedCompanyTab : (request()->has('invoicePage') ? 'payment' : 'subscription'); @endphp @section('_pageTitle', $pageTitle) @section('pagename', $pageTitle) @section('page')
{{ $isAdminRoute ? __('company.nh.adminLead') : __('company.nh.lead') }}