@extends('layouts.app') @section('title', 'Branch Management - Tiqkets') @section('page-title', 'Branches') @section('content') {{-- ✅ If there are NO branches, show setup screen --}} @if ($branch->isEmpty())
TIQKETS
Welcome {{ auth()->user()->name }}!

Setup Your First Branch

Add your first branch, operating hours, services you offer, and team details.

Add Branch
@else @section('header-action') {{-- --}} Add Branch @endsection
@foreach ($branch as $branches) @endforeach
S. No. Name Contact Details Users Status Last Updated Actions
{{ $loop->iteration + ($branch->currentPage() - 1) * $branch->perPage() }}
{{ $branches->branch_name }}
{{ $branches->branch_address }}
{{ $branches->branch_contact_name }}
{{ $branches->branch_contact_phone }} · {{ $branches->branch_contact_email }}
{{ count($branches->userscount) }} {{ ucfirst($branches->status) }} {{ $branches->updated_at->format('d-m-Y H:i:s') }}
{{-- ✅ Custom Pagination --}} {{-- ✅ Custom Pagination --}} {{-- ✅ Custom Pagination --}} @if ($branch->total() > 0)
{{-- ✅ SHOWING ENTRIES (ALWAYS) --}}
Showing {{ $branch->firstItem() ?? 1 }} to {{ $branch->lastItem() ?? $branch->count() }} of {{ $branch->total() }} entries
{{-- ✅ PAGINATION CONTROLS (ONLY IF MORE THAN ONE PAGE) --}} @if ($branch->hasPages()) @else {{-- keeps layout aligned when pagination hidden --}} @endif {{-- ✅ PER PAGE DROPDOWN (ALWAYS) --}}
@endif
{{-- QR Code Management Modal --}} {{-- QR Code Management Modal --}} @endif @endsection @push('styles') @endpush @push('scripts') @endpush