first commit

This commit is contained in:
Sampanna Rimal
2024-08-27 17:48:06 +05:45
commit 53c0140f58
10839 changed files with 1125847 additions and 0 deletions

View File

@ -0,0 +1,18 @@
@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()->form('POST')->route('purchaseService.store')->class(['needs-validation'])->attributes(['novalidate'])->open() }}
@include('office::purchaseservices.partials.action')
{{ html()->form()->close() }}
</div>
@endsection

View File

@ -0,0 +1,23 @@
@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 -->
<div class='card'>
<div class='card-body'>
{{ html()->modelForm($purchaseService, 'PUT')->route('purchaseService.update', $purchaseService->id)->class(['needs-validation'])->attributes(['novalidate'])->open() }}
@include('office::purchaseservices.partials.action')
{{ html()->form()->close() }}
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,89 @@
@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 -->
<div class="card">
<div class="card-header align-items-center d-flex">
<h5 class="card-title flex-grow-1 mb-0">{{ $title }}</h5>
<div class="flex-shrink-0">
<a href="{{ route('purchaseService.create') }}" class="btn btn-success waves-effect waves-light"><i
class="ri-add-fill me-1 align-bottom"></i> Create PurchaseService</a>
</div>
</div>
<div class="card-body">
<table id="buttons-datatables" class="display table-sm table-bordered table">
<thead class="table-light">
<tr>
<th class="tb-col"><span class="overline-title">S.N</span></th>
<th class="tb-col"><span class="overline-title">Service</span></th>
<th class="tb-col"><span class="overline-title">Party</span></th>
<th class="tb-col"><span class="overline-title">Purchased Date</span></th>
<th class="tb-col"><span class="overline-title">Contract Name</span></th>
<th class="tb-col"><span class="overline-title">Contract Validity</span></th>
<th class="tb-col"><span class="overline-title">Status</span></th>
<th class="tb-col" data-sortable="false"><span class="overline-title">Action</span>
</th>
</tr>
</thead>
<tbody>
@foreach ($purchaseServiceLists as $index => $item)
<tr>
<td class="tb-col">{{ $index + 1 }}</td>
<td class="tb-col">{{ $item->name }}</td>
<td class="tb-col">{{ $item->party }}</td>
<td class="tb-col">{{ $item->purchased_date }}</td>
<td class="tb-col">{{ $item->contract_name }}</td>
<td class="tb-col">
{{ $item->contract_validity }}
@if ($item->contract_validity >= now())
<span class="text-success small">(Valid)</span>
@else
<span class="text-danger small">(Expired)</span>
@endif
</td>
<td class="tb-col">{{ $item->status }}</td>
<td class="tb-col">
<div class="dropdown d-inline-block">
<button class="btn btn-soft-secondary btn-sm dropdown" type="button"
data-bs-toggle="dropdown" aria-expanded="false">
<i class="ri-more-fill align-middle"></i>
</button>
<ul class="dropdown-menu dropdown-menu-end">
<li><a href="{{ route('purchaseService.show', [$item->id]) }}"
class="dropdown-item"><i
class="ri-eye-fill text-muted me-2 align-bottom"></i> View</a>
</li>
<li><a href="{{ route('purchaseService.edit', [$item->id]) }}"
class="dropdown-item edit-item-btn"><i
class="ri-pencil-fill text-muted me-2 align-bottom"></i>
Edit</a>
</li>
<li>
<a href="{{ route('purchaseService.destroy', [$item->id]) }}"
class="dropdown-item remove-item-btn"
onclick="confirmDelete(this.href)">
<i class="ri-delete-bin-fill text-muted me-2 align-bottom"></i>
Delete
</a>
</li>
</ul>
</div>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@endsection

View File

@ -0,0 +1,99 @@
<div class="row">
<div class="col-md-9">
<div class='card'>
<div class='card-body'>
<div class="row gy-3">
<div class="col-lg-6 col-md-6">
{{ html()->label('Service Name')->class('form-label') }}
{{ html()->text('purchase_name')->class('form-control')->placeholder('Service Name') }}
</div>
<div class="col-lg-6 col-md-6">
{{ html()->label('Purchased Date')->class('form-label') }}
{{ html()->date('purchased_date')->class('form-control') }}
</div>
<div class="col-lg-6 col-md-6">
{{ html()->label('Reference Number')->class('form-label') }}
{{ html()->text('reference_no')->class('form-control')->placeholder('Reference Number') }}
</div>
<div class="col-lg-6 col-md-6">
{{ html()->label('VAT Number')->class('form-label') }}
{{ html()->text('vat_no')->class('form-control')->placeholder('VAT Number') }}
</div>
<div class="col-lg-6 col-md-6">
{{ html()->label('Contract Name')->class('form-label') }}
{{ html()->text('contract_name')->class('form-control')->placeholder('Contract Name') }}
</div>
<div class="col-lg-6 col-md-6">
{{ html()->label('Contract Validity')->class('form-label') }}
{{ html()->date('contract_validity')->class('form-control')->placeholder('Contract Validity') }}
</div>
<div class="col-lg-6 col-md-6">
{{ html()->label('Party Name')->class('form-label') }}
{{ html()->text('party')->class('form-control')->placeholder('Party Name') }}
</div>
<div class="col-lg-6 col-md-6">
{{ html()->label('Contact Number')->class('form-label') }}
{{ html()->text('contact_no')->class('form-control')->placeholder('Contact Number') }}
</div>
<div class="col-lg-6 col-md-6">
{{ html()->label('Address')->class('form-label') }}
{{ html()->text('address')->class('form-control')->placeholder('Address') }}
</div>
<div class="col-lg-6 col-md-6">
{{ html()->label('Quantity')->class('form-label') }}
{{ html()->number('quantity')->class('form-control')->placeholder('Quantity') }}
</div>
<div class="col-lg-6 col-md-6">
{{ html()->label('Rate')->class('form-label') }}
{{ html()->number('rate')->class('form-control')->placeholder('Rate') }}
</div>
<div class="col-lg-6 col-md-6">
{{ html()->label('Total Amount')->class('form-label') }}
{{ html()->number('total_amount')->class('form-control')->placeholder('Total Amount in Rs') }}
</div>
<div class="col-lg-12 col-md-12">
{{ html()->label('Description')->class('form-label') }}
{{ html()->textarea('description')->class('form-control')->placeholder('Contract Description')->attributes(['rows' => 3]) }}
</div>
<div class="col-lg-12 col-md-12">
{{ html()->label('Remarks')->class('form-label') }}
{{ html()->textarea('remarks')->class('form-control')->attributes(['rows' => 3]) }}
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<div class="card">
<div class="card-header">
<h6 class="card-title mb-0">Document</h6>
</div>
<div class="card-body">
<input name="document" type="file" class="dropify" disabled />
</div>
<div class="card-footer">
<x-form-buttons :editable="$editable" label="Add" />
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,48 @@
@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 -->
<div class='card'>
<div class="card-header align-items-center d-flex">
<h5 class="card-title flex-grow-1 mb-0">View Detail</h5>
<div class="flex-shrink-0">
<a href="{{ route('designations.index') }}" class="btn btn-success waves-effect waves-light"><i
class="ri-add-fill me-1 align-bottom"></i> Back to List</a>
</div>
</div>
<div class='card-body'>
<p><b>Title :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->title }}</span></p>
<p><b>Alias :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->alias }}</span></p>
<p><b>Status :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span
class="{{ $data->status == 1 ? 'text-success' : 'text-danger' }}">{{ $data->status == 1 ? 'Active' : 'Inactive' }}</span>
</p>
<p><b>Remarks :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->remarks }}</span></p>
<p><b>Display Order :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->display_order }}</span></p>
<p><b>Createdby :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->createdby }}</span></p>
<p><b>Updatedby :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->updatedby }}</span></p>
<p><b>Job Description :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->job_description }}</span></p>
<p><b>Departments Id :&nbsp;&nbsp;&nbsp;&nbsp;</b> <span>{{ $data->departments_id }}</span></p>
<div class="d-flex justify-content-between">
<div>
<p><b>Created On :</b>&nbsp;&nbsp;&nbsp;<span>{{ $data->created_at }}</span></p>
<p><b>Created By :</b>&nbsp;&nbsp;&nbsp;<span>{{ $data->createdBy }}</span></p>
</div>
<div>
<p><b>Updated On :</b>&nbsp;&nbsp;&nbsp;<span>{{ $data->updated_at }}</span></p>
<p><b>Updated By :</b>&nbsp;&nbsp;&nbsp;<span>{{ $data->updatedBy }}</span></p>
</div>
</div>
</div>
</div>
</div>
</div>
@endSection