@extends('layouts.app') @section('title', 'Pengaturan Perusahaan') @section('content')
{{-- ═══════════════ INFO PERUSAHAAN ═══════════════ --}}
@csrf @method('PUT')

Informasi Perusahaan

@if($errors->any() && !$errors->hasBag('payment'))
    @foreach($errors->all() as $e)
  • {{ $e }}
  • @endforeach
@endif

Akan muncul otomatis di invoice jika catatan invoice kosong.

{{-- ═══════════════ METODE PEMBAYARAN ═══════════════ --}}

💳 Metode Pembayaran

{{-- Flash messages --}} @if(session('success'))
✅ {{ session('success') }}
@endif @if(session('error'))
⚠️ {{ session('error') }}
@endif {{-- Error validasi dari form payment --}} @if($errors->any() && $errors->hasBag('payment'))
@foreach($errors->getBag('payment')->all() as $e)
⚠️ {{ $e }}
@endforeach
@endif {{-- LIST METODE YANG ADA --}}
@php $paymentMethods = $paymentMethods ?? \App\Models\PaymentMethod::orderBy('urutan')->orderBy('id')->get(); @endphp @forelse($paymentMethods as $pm)
{{ $pm->jenis_icon }}
{{ $pm->nama }} {{ $pm->jenis_label }} @if(! $pm->is_active) NONAKTIF @endif
{{ $pm->nomor }} @if($pm->pemilik) — a.n {{ $pm->pemilik }} @endif
@csrf
@csrf @method('DELETE')
@empty
Belum ada metode pembayaran. Tambahkan di bawah. 👇
@endforelse
{{-- FORM TAMBAH --}}
@csrf
➕ Tambah Metode Pembayaran Baru
{{-- Error display khusus form ini --}} @if($errors->any())
@foreach($errors->all() as $e)
⚠️ {{ $e }}
@endforeach
@endif
{{-- ═══════════════ SIDEBAR ═══════════════ --}}
{{-- LOGO --}}

Logo Perusahaan

@if($tenant->logo_path)
@csrf @method('DELETE')
@else
Belum ada logo
@endif
@csrf
{{-- INFO TENANT --}}

Info Tenant

Kode: {{ $tenant->kode_tenant }}
Slug: {{ $tenant->slug }}
Status: {{ strtoupper($tenant->status) }}
@if($tenant->tanggal_expired)
Expired: {{ $tenant->tanggal_expired->format('d/m/Y') }}
@endif
@endsection