diff --git a/src/lib/components/GoodsManagersContent.svelte b/src/lib/components/GoodsManagersContent.svelte new file mode 100644 index 0000000..2d07449 --- /dev/null +++ b/src/lib/components/GoodsManagersContent.svelte @@ -0,0 +1,953 @@ + + +
+
+
+

Mal Sorumluları

+
+ +
+ + {#if error} +
+ {error} +
+ {/if} + + {#if loading} +
+
+

Yükleniyor...

+
+ {:else if goodsManagers.length === 0} +
+
+ + + + + + +
+

Henüz Mal Sorumlusu Yok

+

Sisteme mal sorumlusu eklemek için "Yeni Mal Sorumlusu Ekle" butonuna tıklayın.

+ +
+ {:else} +
+ {#each goodsManagers as manager (manager.id)} +
+
+
+

{manager.rank} {manager.full_name}

+
+ + {@html manager.is_active ? ' Aktif' : ' Pasif'} + +
+
+
+ +
+
+ 📄 Sicil No: + {manager.registration_number} +
+
+ 🆔 TC Kimlik: + {manager.tc_kimlik} +
+
+ 📧 E-posta: + {manager.email} +
+
+ 📱 İrtibat: + {manager.phone} +
+
+ 👤 Kullanıcı Adı: + {manager.username || 'Belirlenmemiş'} +
+
+ +
+ + + +
+
+ {/each} +
+ {/if} +
+ + +{#if showAddModal} + +{/if} + + +{#if showEditModal} + +{/if} + + \ No newline at end of file diff --git a/src/lib/components/PersonnelContent.svelte b/src/lib/components/PersonnelContent.svelte new file mode 100644 index 0000000..062a665 --- /dev/null +++ b/src/lib/components/PersonnelContent.svelte @@ -0,0 +1,823 @@ + + +
+
+

Personel Yönetimi

+
+ {personnel.length} + Personel +
+ +
+ + {#if error} +
+ {error} +
+ {/if} + + {#if loading} +
+
+

Yükleniyor...

+
+ {:else if personnel.length === 0} +
+
+ + + + + + +
+

Henüz Personel Yok

+

Sisteme personel eklemek için "Yeni Personel Ekle" butonuna tıklayın.

+ +
+ {:else} +
+ {#each personnel as person (person.id)} +
+
+
+

{person.rank} {person.full_name}

+
+ + {@html person.is_active ? ' Aktif' : ' Pasif'} + +
+
+
+ +
+
+ Sicil No: + {person.registration_number} +
+
+ TC Kimlik: + {person.tc_kimlik} +
+
+ İrtibat: + {person.phone} +
+
+ +
+ + + +
+
+ {/each} +
+ {/if} +
+ + +{#if showAddModal} + +{/if} + + +{#if showEditModal} + +{/if} + + \ No newline at end of file diff --git a/src/lib/components/UnitsContent.svelte b/src/lib/components/UnitsContent.svelte new file mode 100644 index 0000000..d2eeaa9 --- /dev/null +++ b/src/lib/components/UnitsContent.svelte @@ -0,0 +1,531 @@ + + +
+
+

Birlik Yönetimi

+
+ {units.length} + Birlik +
+ +
+ + {#if error} +
+ {error} +
+ {/if} + + {#if loading} +
+
+

Yükleniyor...

+
+ {:else if units.length === 0} +
+
+ + + + + +
+

Henüz Birlik Yok

+

Sisteme birlik eklemek için "Yeni Birlik Ekle" butonuna tıklayın.

+ +
+ {:else} +
+ {#each units as unit (unit.id)} +
+
+
+

{unit.name}

+

{unit.address}

+
+
+ +
+
+ STK: + {unit.stk} +
+
+ BTK: + {unit.btk} +
+
+ +
+

Birlik Sorumlusu

+
+
+

{unit.commander.rank} {unit.commander.full_name}

+

Sicil: {unit.commander.registration_number}

+

TC: {unit.commander.tc_kimlik}

+

İrtibat: {unit.commander.phone}

+
+
+
+ +
+ + +
+
+ {/each} +
+ {/if} +
+ + + + + \ No newline at end of file diff --git a/src/lib/components/VehiclesContent.svelte b/src/lib/components/VehiclesContent.svelte new file mode 100644 index 0000000..bf242e1 --- /dev/null +++ b/src/lib/components/VehiclesContent.svelte @@ -0,0 +1,640 @@ + + +
+
+

Araç Yönetimi

+
+ {vehicles.length} + Araç +
+ +
+ + {#if error} +
+ {error} +
+ {/if} + + {#if loading} +
+
+

Yükleniyor...

+
+ {:else if vehicles.length === 0} +
+
+ + + + + +
+

Henüz Araç Yok

+

Sisteme araç eklemek için "Yeni Araç Ekle" butonuna tıklayın.

+ +
+ {:else} +
+ {#each vehicles as vehicle (vehicle.id)} +
+
+
+

{vehicle.brand} {vehicle.model}

+

{vehicle.year}

+
+
+ {vehicle.plate} +
+
+
+ + +
+
+ {/each} +
+ {/if} +
+ + +{#if showAddModal} + +{/if} + + +{#if showEditModal} + +{/if} + + \ No newline at end of file