annotate resources/views/clients/create_edit.blade.php @ 2:90296614b7e2 default tip

Adding in the base for the clients table
author luka
date Thu, 28 Aug 2025 20:55:40 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
1 <x-app-layout>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
2 <x-slot name="header">
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
3 <h2 class="fw-semibold fs-4 text-dark">
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
4 {{ isset($item) ? 'Edit' : 'Create' }} {{ ucfirst('client') }}
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
5 </h2>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
6 </x-slot>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
7
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
8 <div class="py-5">
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
9 <div class="container">
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
10 <div class="bg-white shadow-sm rounded p-4">
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
11 <form method="POST" action="{{ isset($item) ? route('clients.update', $item) : route('clients.store') }}">
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
12 @csrf
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
13 @if (isset($item))
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
14 @method('PUT')
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
15 @endif
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
16
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
17 <x-form.text
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
18 name="name"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
19 label="Name"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
20 :value="request('name', $item?->name ?? '')"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
21 :required="true"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
22 ></x-form.text>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
23
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
24 <x-form.text
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
25 name="email"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
26 label="Email"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
27 :value="request('email', $item?->email ?? '')"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
28 :required="false"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
29 ></x-form.text>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
30
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
31 <x-form.text
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
32 name="phone_number"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
33 label="Phone Number"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
34 :value="request('phone_number', $item?->phone_number ?? '')"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
35 :required="false"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
36 ></x-form.text>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
37
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
38 <x-form.text
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
39 name="address"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
40 label="Address"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
41 :value="request('address', $item?->address ?? '')"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
42 :required="false"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
43 ></x-form.text>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
44
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
45 <x-form.textarea
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
46 name="notes"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
47 label="Notes"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
48 :value="request('notes', $item?->notes ?? '')"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
49 :required="false"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
50 ></x-form.textarea>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
51
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
52
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
53 <div class="d-flex justify-content-end">
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
54 <a href="{{ route('clients.index') }}"
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
55 class="btn btn-secondary me-2">Back</a>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
56 <button type="submit" class="btn btn-primary">
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
57 {{ isset($item) ? 'Update' : 'Create' }}
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
58 </button>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
59 </div>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
60 </form>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
61 </div>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
62 </div>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
63 </div>
90296614b7e2 Adding in the base for the clients table
luka
parents:
diff changeset
64 </x-app-layout>