firstcommit

This commit is contained in:
2024-05-16 09:31:08 +05:45
commit 34d9672cb8
1396 changed files with 86482 additions and 0 deletions

View File

@ -0,0 +1,15 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
{{ html()->form('POST')->route('customer.store')->class(['needs-validation'])->attributes(['novalidate', 'enctype' => 'multipart/form-data'])->open() }}
@include('customer::customer.partials.action')
{{ html()->form()->close() }}
</div>
</div>
@endsection

View File

@ -0,0 +1,27 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
<!-- start page title -->
@include('layouts.partials.breadcrumb', ['title' => $title])
<!-- end page title -->
{{ html()->modelForm($customer, 'PUT')->route('customer.update', $customer->id)->class(['needs-validation'])->attributes(['novalidate', 'enctype' => 'multipart/form-data'])->open() }}
@include('customer::customer.partials.action')
{{ html()->closeModelForm() }}
<!--end row-->
</div>
<!-- container-fluid -->
</div>
@endsection

View File

@ -0,0 +1,78 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
<div class="mb-2 text-end">
@can('customer.create')
<a href="{{ route('customer.create') }}" class="btn btn-success btn-md waves-effect waves-light"><i
class="ri-add-fill me-1 align-bottom"></i> Add</a>
@endcan
</div>
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<div class="table-responsive">
<table id="buttons-datatables" class="display table-sm table-bordered table"
style="width:100%">
<thead>
<tr>
<th>S.N</th>
<th>Customer Name</th>
<th>Email</th>
<th>Contact</th>
<th>Address</th>
<th>Company</th>
<th>Action</th>
</tr>
</thead>
<tbody>
@forelse ($customers as $key => $customer)
<tr>
<td>{{ $key + 1 }}</td>
<td>{{ $customer->customer_name }}</td>
<td>{{ $customer->email }}</td>
<td>{{ $customer->contact }}</td>
<td>{{ $customer->address }}</td>
<td>{{ $customer->company_name }}</td>
<td>
<div class="hstack flex-wrap gap-3">
@can('customer.show')
<a href="{{ route('customer.show', $customer->id) }}"
class="link-info fs-15">
<i class="ri-eye-line"></i>
</a>
@endcan
@can('customer.edit')
<a href="{{ route('customer.edit', $customer->id) }}"
class="link-success fs-15 edit-item-btn"><i
class="ri-edit-2-line"></i></a>
@endcan
@can('customer.destroy')
<a href="javascript:void(0);"
data-link="{{ route('customer.destroy', $customer->id) }}"
data-id="{{ $customer->id }}"
class="link-danger fs-15 remove-item-btn"><i
class="ri-delete-bin-line"></i></a>
@endcan
</div>
</td>
</tr>
@empty
@endforelse
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<!--end row-->
</div>
</div>
@endsection

View File

@ -0,0 +1,96 @@
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<div class="row gy-3">
<div class="col-md-4">
{{ html()->label('First Name')->class('form-label') }}
{{ html()->text('first_name')->class('form-control')->placeholder('First Name')->required() }}
</div>
<div class="col-md-4">
{{ html()->label('Last Name')->class('form-label') }}
{{ html()->text('last_name')->class('form-control')->placeholder('Last Name')->required() }}
</div>
<div class="col-md-4">
{{ html()->label('Email')->class('form-label') }}
{{ html()->email('email')->class('form-control')->placeholder('Email Address')->required() }}
{{ html()->div('Please enter email')->class('invalid-feedback') }}
</div>
<div class="col-md-4">
{{ html()->label('Phone Number')->class('form-label') }}
{{ html()->text('phone')->class('form-control')->placeholder('Phone Number') }}
</div>
<div class="col-md-4">
{{ html()->label('Contact Number')->class('form-label') }}
{{ html()->text('contact')->class('form-control')->placeholder('Contact Number') }}
</div>
<div class="col-md-4">
{{ html()->label('Address')->class('form-label') }}
{{ html()->text('address')->class('form-control')->placeholder('Enter Full Address') }}
</div>
</div>
<div class="row my-4">
<div class="col-md-12">
<span class="fs-6 fw-bold">Company Details</span>
</div>
</div>
<div class="row gy-3">
<div class="col-md-4">
{{ html()->label('Name')->class('form-label') }}
{{ html()->text('company_name')->class('form-control')->placeholder('Company Name')->required() }}
</div>
<div class="col-md-4">
{{ html()->label('Address')->class('form-label') }}
{{ html()->text('company_address')->class('form-control')->placeholder('Company Address')->required() }}
</div>
<div class="col-md-4">
{{ html()->label('Phone')->class('form-label') }}
{{ html()->text('company_phone')->class('form-control')->placeholder('Company Phone')->required() }}
</div>
<div class="col-md-4">
{{ html()->label('Contact')->class('form-label') }}
{{ html()->text('company_contact')->class('form-control')->placeholder('Company Contact')->required() }}
</div>
<div class="col-md-4">
{{ html()->label('PAN')->class('form-label') }}
{{ html()->text('company_pan')->class('form-control')->placeholder('Company PAN')->required() }}
</div>
<div class="col-md-12">
{{ html()->label('Remarks')->class('form-label') }}
{{ html()->textarea('remarks')->class('form-control')->placeholder('Enter Remarks') }}
</div>
<x-form-buttons :editable="$editable" label="Add" href="{{ route('customer.index') }}" />
</div>
</div>
<!-- end card body -->
</div>
<!-- end card -->
</div>
</div>
@push('js')
<script src="{{asset('assets/js/pages/form-validation.init.js')}}"></script>
@endpush

View File

@ -0,0 +1,49 @@
@extends('layouts.app')
@section('content')
<div class="page-content">
<div class="container-fluid">
@include('layouts.partials.breadcrumb', ['title' => $title])
<div class="row">
<div class="col-md-8">
<div class="card card-body p-4">
<div>
<div class="table-responsive">
<table class="table-borderless mb-0 table">
<tbody>
<tr>
<th><span class="fw-medium">Customer Name</span></th>
<td>{{ $customer->customer_name }}</td>
</tr>
<tr>
<th><span class="fw-medium">Email</span></th>
<td>{{ $customer->email }}</td>
</tr>
<tr>
<th><span class="fw-medium">Phone</span></th>
<td>{{ $customer->contact }}</td>
</tr>
<tr>
<th><span class="fw-medium">Permanent Address</span></th>
<td>{{ $customer->permanent_address }}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="mb-3 text-end">
<a href="{{ route('customer.index') }}" class="btn btn-secondary w-sm">Back</a>
</div>
</div>
</div>
</div>
</div>
@endsection
@push('js')
<script src="{{ asset('assets/js/pages/form-validation.init.js') }}"></script>
@endpush

View File

@ -0,0 +1,7 @@
@extends('customer::layouts.master')
@section('content')
<h1>Hello World</h1>
<p>Module: {!! config('customer.name') !!}</p>
@endsection

View File

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="csrf-token" content="{{ csrf_token() }}">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Customer Module - {{ config('app.name', 'Laravel') }}</title>
<meta name="description" content="{{ $description ?? '' }}">
<meta name="keywords" content="{{ $keywords ?? '' }}">
<meta name="author" content="{{ $author ?? '' }}">
<!-- Fonts -->
<link rel="preconnect" href="https://fonts.bunny.net">
<link href="https://fonts.bunny.net/css?family=figtree:400,500,600&display=swap" rel="stylesheet" />
{{-- Vite CSS --}}
{{-- {{ module_vite('build-customer', 'resources/assets/sass/app.scss') }} --}}
</head>
<body>
@yield('content')
{{-- Vite JS --}}
{{-- {{ module_vite('build-customer', 'resources/assets/js/app.js') }} --}}
</body>