@extends('layouts.app') @section('title', 'Manage Posts') @section('page-title', 'Simamia Vituo') @section('content')
{{-- Success and Error Messages --}} @if (session('success'))
check_circle

{{ session('success') }}

@endif @if (session('error'))
error

{{ session('error') }}

@endif {{-- Page Header --}}

Simamia Vituo

Ongeza, hariri na ufute vituo vya kazi

{{-- Add Post Button --}}
{{-- Statistics Cards --}}

Jumla ya Vituo

{{ $posts->count() }}

place

Vituo Vipya Mwezi Huu

{{ $posts->where('created_at', '>=', now()->startOfMonth())->count() }}

trending_up

Matawi Yenye Vituo

{{ $posts->pluck('branch_id')->unique()->count() }}

business

Wastani wa Vituo/Tawi

{{ $branches->count() > 0 ? round($posts->count() / $branches->count(), 1) : 0 }}

analytics
{{-- Posts Table --}}

Vituo Vilivyopo

search
@forelse ($posts as $post) @empty @endforelse
ID Jina la Kituo Tawi Tarehe ya Usajili Hali Vitendo
#{{ $post->id }}
place

{{ ucfirst($post->name) }}

Kituo cha Kazi

@if($post->branch) business {{ ucfirst($post->branch->name) }} @else Hakuna tawi @endif
{{ $post->created_at->format('d/m/Y') }} Amilifu
{{-- View/Details Button --}} {{-- Edit Button --}} {{-- Delete Button --}}
place

Hakuna vituo vilivopatikana

Anza kwa kuongeza kituo cha kwanza

{{-- Simple Pagination Info --}} @if($posts->count() > 0)
Inaonyesha {{ $posts->count() }} ya jumla ya vituo
vilivopatikana baada ya kuchuja
@endif
{{-- Add Post Modal --}}
@csrf
add_location_alt

Ongeza Kituo Kipya

{{-- Edit Post Modal --}}
@csrf @method('PUT')
edit_location

Hariri Kituo

{{-- Delete Post Modal --}}
warning

Futa Kituo

info

Onyo!

Una uhakika unataka kufuta kituo ? Hatua hii haiwezi kubadilishwa na data yote inayohusiana itafutwa.

@csrf @method('DELETE')
@endsection @push('scripts') @endpush